Skip to content

@codesoul-co/hypha-domain / index

Using this module

Aggregates the public entrypoint exports for @codesoul-co/hypha-domain; applications import these symbols from the package entrypoint instead of internal file paths.

Import from the package entrypoint

ts
import {
  DomainCompiler,
  DomainPackRegistry,
  LocalDomainPackLoader,
  WorkflowCompiler,
  businessRuleEffectSchema,
  businessRuleScopeSchema,
  businessRuleSpecDefinition,
  businessRuleSpecExample,
} from '@codesoul-co/hypha-domain';

import type {
  BusinessRuleSpec,
  DomainAgentPatch,
  DomainAgentPatchTarget,
  DomainBindingResolution,
  DomainCompilationAudit,
  DomainCompilationResult,
  DomainCompileOptions,
  DomainPackRegistryEntry,
} from '@codesoul-co/hypha-domain';

// The complete export list is documented below.

Usage patterns

  • Use the 33 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 4 classes as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 12 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 31 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Runtime validation example

ts
import { businessRuleEffectSchema } from '@codesoul-co/hypha-domain';

declare function loadExternalInput(): unknown;
const input: unknown = loadExternalInput();
const parsed = businessRuleEffectSchema.parse(input);

Parse untrusted configuration, network, or persisted input with the runtime schema before passing it to functions or classes that expect a validated contract.

Public exports

SymbolKindSignatureDescription
DomainCompilerclassnew DomainCompiler(): DomainCompilerDomain Compiler class with 2 public constructor or member entries; its exact declarations are listed below.
DomainPackRegistryclassnew DomainPackRegistry(): DomainPackRegistryDomain Pack Registry class with 6 public constructor or member entries; its exact declarations are listed below.
LocalDomainPackLoaderclassnew LocalDomainPackLoader(options: LocalDomainPackLoaderOptions): LocalDomainPackLoaderLocal Domain Pack Loader class with 3 public constructor or member entries; its exact declarations are listed below.
WorkflowCompilerclassnew WorkflowCompiler(): WorkflowCompilerWorkflow Compiler class with 2 public constructor or member entries; its exact declarations are listed below.
businessRuleEffectSchemaconstantconst businessRuleEffectSchema: z.ZodEnum<["constraint", "precondition", "postcondition", "guidance"]>Runtime schema for Business Rule Effect.
businessRuleScopeSchemaconstantconst businessRuleScopeSchema: z.ZodEnum<["domain", "task", "workflow", "state", "tool", "memory", "output"]>Runtime schema for Business Rule Scope.
businessRuleSpecDefinitionconstantconst businessRuleSpecDefinition: SpecSchemaDefinition<BusinessRuleSpec>Runtime validation entrypoint for the Business Rule spec, combining its parser, example and JSON Schema.
businessRuleSpecExampleconstantconst businessRuleSpecExample: BusinessRuleSpecValid example value for Business Rule Spec.
businessRuleSpecJsonSchemaconstantconst businessRuleSpecJsonSchema: JsonSchemaJSON Schema for Business Rule Spec.
businessRuleSpecSchemaconstantconst businessRuleSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { scope: z.ZodEnum<["domain", "task", "workflow", "state", "tool", "memory", "outp...Runtime schema for Business Rule Spec.
DOMAIN_COMPILER_VERSIONconstantconst DOMAIN_COMPILER_VERSION: "1.0.0"DOMAIN COMPILER VERSION constant exported by the index module.
domainAgenticReasoningModeSchemaconstantconst domainAgenticReasoningModeSchema: z.ZodEnum<["react", "fsm_react", "tot", "critique"]>Runtime schema for Domain Agentic Reasoning Mode.
domainPackSpecDefinitionconstantconst domainPackSpecDefinition: SpecSchemaDefinition<DomainPackSpec>Runtime validation entrypoint for the Domain Pack spec, combining its parser, example and JSON Schema.
domainPackSpecExampleconstantconst domainPackSpecExample: DomainPackSpecValid example value for Domain Pack Spec.
domainPackSpecJsonSchemaconstantconst domainPackSpecJsonSchema: JsonSchemaJSON Schema for Domain Pack Spec.
domainPackSpecSchemaconstantconst domainPackSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { name: z.ZodString; taskSchemas: z.ZodArray<z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<...Runtime schema for Domain Pack Spec.
domainPromptRefSchemaconstantconst domainPromptRefSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; } & { required: z.ZodOptional<z.ZodBoolean>; priority: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; version?: string | undefined; revision?: string | undefined; required?: boolean | undefined; priority?: number | undefined; }, { id: string; version?: string |...Runtime schema for Domain Prompt Ref.
domainReasoningPersistenceSchemaconstantconst domainReasoningPersistenceSchema: z.ZodEnum<["summary_only", "events_only"]>Runtime schema for Domain Reasoning Persistence.
domainSpecDefinitionsconstantconst domainSpecDefinitions: readonly [SpecSchemaDefinition<WorkflowSpec>, SpecSchemaDefinition<ReasoningSpec>, SpecSchemaDefinition<BusinessRuleSpec>, SpecSchemaDefinition<DomainPackSpec>]Domain Spec Definitions constant exported by the index module.
domainSpecJsonSchemasconstantconst domainSpecJsonSchemas: Record<string, JsonSchema>Domain Spec JSON Schemas constant exported by the index module.
domainThinkingModeSchemaconstantconst domainThinkingModeSchema: z.ZodEnum<["none", "summary", "structured"]>Runtime schema for Domain Thinking Mode.
reasoningSpecDefinitionconstantconst reasoningSpecDefinition: SpecSchemaDefinition<ReasoningSpec>Runtime validation entrypoint for the Reasoning spec, combining its parser, example and JSON Schema.
reasoningSpecExampleconstantconst reasoningSpecExample: ReasoningSpecValid example value for Reasoning Spec.
reasoningSpecJsonSchemaconstantconst reasoningSpecJsonSchema: JsonSchemaJSON Schema for Reasoning Spec.
reasoningSpecSchemaconstantconst reasoningSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { thinkingMode: z.ZodEnum<["none", "summary", "structured"]>; agenticMode: z.ZodEnum<...Runtime schema for Reasoning Spec.
riskProfileSpecSchemaconstantconst riskProfileSpecSchema: z.ZodObject<{ defaultRiskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>; escalationPolicyRef: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }>Runtime schema for Risk Profile Spec.
sessionProfileSpecSchemaconstantconst sessionProfileSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { metadataSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>...Runtime schema for Session Profile Spec.
skillPolicyBindingSchemaconstantconst skillPolicyBindingSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { skillRef: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; ...Runtime schema for Skill Policy Binding.
taskSchemaSpecSchemaconstantconst taskSchemaSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { taskType: z.ZodString; inputSchema: z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema...Runtime schema for Task Schema Spec.
workflowSpecDefinitionconstantconst workflowSpecDefinition: SpecSchemaDefinition<WorkflowSpec>Runtime validation entrypoint for the Workflow spec, combining its parser, example and JSON Schema.
workflowSpecExampleconstantconst workflowSpecExample: WorkflowSpecValid example value for Workflow Spec.
workflowSpecJsonSchemaconstantconst workflowSpecJsonSchema: JsonSchemaJSON Schema for Workflow Spec.
workflowSpecSchemaconstantconst workflowSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { initialState: z.ZodString; terminalStates: z.ZodArray<z.ZodString, "many">; states: ...Runtime schema for Workflow Spec.
workflowStateSpecSchemaconstantconst workflowStateSpecSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { id: z.ZodString; goal: z.ZodString; inputContract: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; outputCon...Runtime schema for Workflow State Spec.
workflowTransitionSpecSchemaconstantconst workflowTransitionSpecSchema: z.ZodObject<{ from: z.ZodString; to: z.ZodString; guard: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { from: string; to: string; description?: string | undefined; guard?: string | undefined; }, { from: string; to: string; description?: string | undefined; guard?: string | undefined; }>Runtime schema for Workflow Transition Spec.
applyDomainAgentPatchfunctionapplyDomainAgentPatch<TAgent extends DomainAgentPatchTarget>(agent: TAgent, patch: DomainAgentPatch): TAgentApply Domain Agent Patch function with 1 public call signature; parameters and return types are listed below.
compileDomainPackToHarnessedSystemfunctioncompileDomainPackToHarnessedSystem(input: DomainPackSpec, options: DomainCompileOptions): DomainCompilationResultCompile Domain Pack To Harnessed System function with 1 public call signature; parameters and return types are listed below.
compileWorkflowToFSMfunctioncompileWorkflowToFSM(domainPack: DomainPackSpec, options?: WorkflowCompileOptions): FSMProcessSpecCompile Workflow To FSM function with 1 public call signature; parameters and return types are listed below.
createWorkflowDependencySnapshotfunctioncreateWorkflowDependencySnapshot(input: Omit<WorkflowDependencySnapshot, "dependencyHash">): WorkflowDependencySnapshotCreate Workflow Dependency Snapshot function with 1 public call signature; parameters and return types are listed below.
extendDomainPackfunctionextendDomainPack(base: DomainPackSpec, overlay: DomainPackOverlay): DomainPackSpecExtend Domain Pack function with 1 public call signature; parameters and return types are listed below.
initializeDomainSessionfunctioninitializeDomainSession(domainPack: DomainPackSpec, options?: DomainSessionInitOptions): DomainSessionInitializationInitialize Domain Session function with 1 public call signature; parameters and return types are listed below.
listLocalDomainPackFilesfunctionlistLocalDomainPackFiles(directory: string, recursive?: boolean, extensions?: string[]): Promise<string[]>List Local Domain Pack Files function with 1 public call signature; parameters and return types are listed below.
loadDomainPackFilefunctionloadDomainPackFile(filePath: string): Promise<DomainPackSpec>Load Domain Pack File function with 1 public call signature; parameters and return types are listed below.
parseDomainPackDocumentfunctionparseDomainPackDocument(raw: string, filePath?: string): DomainPackSpecParse Domain Pack Document function with 1 public call signature; parameters and return types are listed below.
resolveWorkflowToolExecutionScopefunctionresolveWorkflowToolExecutionScope(workflowStates: WorkflowStateBinding[], stateId: string): ToolExecutionScopeResolve Workflow Tool Execution Scope function with 1 public call signature; parameters and return types are listed below.
validateDomainPackSpecfunctionvalidateDomainPackSpec(input: unknown): DomainPackSpecValidate Domain Pack Spec function with 1 public call signature; parameters and return types are listed below.
validateWorkflowSpecfunctionvalidateWorkflowSpec(input: unknown): WorkflowSpecValidate Workflow Spec function with 1 public call signature; parameters and return types are listed below.
BusinessRuleSpecinterfaceinterface BusinessRuleSpec extends VersionedSpec, SpecMetadataBusiness Rule Spec interface with 17 public fields or methods.
DomainAgentPatchinterfaceinterface DomainAgentPatchDomain Agent Patch interface with 9 public fields or methods.
DomainAgentPatchTargetinterfaceinterface DomainAgentPatchTargetDomain Agent Patch Target interface with 12 public fields or methods.
DomainBindingResolutioninterfaceinterface DomainBindingResolutionDomain Binding Resolution interface with 23 public fields or methods.
DomainCompilationAuditinterfaceinterface DomainCompilationAuditDomain Compilation Audit interface with 9 public fields or methods.
DomainCompilationResultinterfaceinterface DomainCompilationResultDomain Compilation Result interface with 11 public fields or methods.
DomainCompileOptionsinterfaceinterface DomainCompileOptionsDomain Compile Options interface with 20 public fields or methods.
DomainPackRegistryEntryinterfaceinterface DomainPackRegistryEntryDomain Pack Registry Entry interface with 2 public fields or methods.
DomainPackSpecinterfaceinterface DomainPackSpec extends VersionedSpec, SpecMetadataDomain Pack Spec interface with 31 public fields or methods.
DomainPromptRefinterfaceinterface DomainPromptRef extends SpecRefDomain Prompt Ref interface with 5 public fields or methods.
DomainSessionInitializationinterfaceinterface DomainSessionInitializationDomain Session Initialization interface with 10 public fields or methods.
DomainSessionInitOptionsinterfaceinterface DomainSessionInitOptionsDomain Session Init Options interface with 2 public fields or methods.
LocalDomainPackLoaderOptionsinterfaceinterface LocalDomainPackLoaderOptionsLocal Domain Pack Loader Options interface with 3 public fields or methods.
ReasoningSpecinterfaceinterface ReasoningSpec extends VersionedSpec, SpecMetadataReasoning Spec interface with 16 public fields or methods.
RiskProfileSpecinterfaceinterface RiskProfileSpecRisk Profile Spec interface with 2 public fields or methods.
SessionProfileSpecinterfaceinterface SessionProfileSpec extends VersionedSpec, SpecMetadataSession Profile Spec interface with 17 public fields or methods.
SkillPolicyBindinginterfaceinterface SkillPolicyBinding extends VersionedSpec, SpecMetadataSkill Policy Binding interface with 14 public fields or methods.
TaskInstanceinterfaceinterface TaskInstanceTask Instance interface with 8 public fields or methods.
TaskSchemaSpecinterfaceinterface TaskSchemaSpec extends VersionedSpec, SpecMetadataTask Schema Spec interface with 16 public fields or methods.
WorkflowCompileOptionsinterfaceinterface WorkflowCompileOptionsWorkflow Compile Options interface with 3 public fields or methods.
WorkflowDependencySnapshotinterfaceinterface WorkflowDependencySnapshotWorkflow Dependency Snapshot interface with 23 public fields or methods.
WorkflowSpecinterfaceinterface WorkflowSpec extends VersionedSpec, SpecMetadataWorkflow Spec interface with 12 public fields or methods.
WorkflowStateBindinginterfaceinterface WorkflowStateBindingWorkflow State Binding interface with 18 public fields or methods.
WorkflowStateSpecinterfaceinterface WorkflowStateSpec extends SpecMetadataWorkflow State Spec interface with 33 public fields or methods.
WorkflowTransitionSpecinterfaceinterface WorkflowTransitionSpecWorkflow Transition Spec interface with 4 public fields or methods.
BusinessRuleEffecttypetype BusinessRuleEffect = 'constraint' | 'precondition' | 'postcondition' | 'guidance'Public type alias for Business Rule Effect; the declaration contains its complete type expression.
BusinessRuleScopetypetype BusinessRuleScope = 'domain' | 'task' | 'workflow' | 'state' | 'tool' | 'memory' | 'output'Public type alias for Business Rule Scope; the declaration contains its complete type expression.
DomainAgenticReasoningModetypetype DomainAgenticReasoningMode = 'react' | 'fsm_react' | 'tot' | 'critique'Public type alias for Domain Agentic Reasoning Mode; the declaration contains its complete type expression.
DomainPackOverlaytypetype DomainPackOverlay = Partial<Omit<DomainPackSpec, 'id' | 'version' | 'name' | 'taskSchemas' | 'workflows'>> & { id?: string; version?: string; name?: string; taskSchemas?: TaskSchemaSpec[]; workflows?: WorkflowSpec[]; remove?: DomainPackOverlayRemovals; }Public type alias for Domain Pack Overlay; the declaration contains its complete type expression.
DomainPackOverlayCollectiontypetype DomainPackOverlayCollection = 'taskSchemas' | 'outputContracts' | 'sessionProfiles' | 'workflows' | 'allowedSkills' | 'defaultSkills' | 'skillPolicies' | 'allowedPromptRefs' | 'defaultPromptRefs' | 'tools' | 'toolProfiles' | 'mcpProfiles' | 'memoryProfiles' | 'contextProfiles' | 'reasoningProfiles' | 'businessRules' | 'policies' | 'evaluationProfiles' | 'regressionCases'Public type alias for Domain Pack Overlay Collection; the declaration contains its complete type expression.
DomainPackOverlayRemovalstypetype DomainPackOverlayRemovals = Partial<Record<DomainPackOverlayCollection, string[]>>Public type alias for Domain Pack Overlay Removals; the declaration contains its complete type expression.
DomainReasoningPersistencetypetype DomainReasoningPersistence = 'summary_only' | 'events_only'Public type alias for Domain Reasoning Persistence; the declaration contains its complete type expression.
DomainThinkingModetypetype DomainThinkingMode = 'none' | 'summary' | 'structured'Public type alias for Domain Thinking Mode; the declaration contains its complete type expression.

DomainCompiler

Domain Compiler class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DomainCompiler } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare class DomainCompiler {
    compile(domainPack: DomainPackSpec, options: DomainCompileOptions): DomainCompilationResult;
}

Public members

MemberKindSignatureDescription
compilemethodcompile(domainPack: DomainPackSpec, options: DomainCompileOptions): DomainCompilationResultPublic method; parameters and return type are shown in the signature.
constructorconstructor(): DomainCompilerCreates an instance of this class.

DomainPackRegistry

Domain Pack Registry class with 6 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DomainPackRegistry } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare class DomainPackRegistry {
    register(spec: DomainPackSpec, source?: string): DomainPackSpec;
    registerMany(entries: DomainPackRegistryEntry[]): DomainPackSpec[];
    resolve(id: string, version?: string): DomainPackRegistryEntry | undefined;
    get(id: string, version?: string): DomainPackSpec | null;
    list(): DomainPackRegistryEntry[];
}

Public members

MemberKindSignatureDescription
constructorconstructor(): DomainPackRegistryCreates an instance of this class.
getmethodget(id: string, version?: string): DomainPackSpec | nullPublic method; parameters and return type are shown in the signature.
listmethodlist(): DomainPackRegistryEntry[]Public method; parameters and return type are shown in the signature.
registermethodregister(spec: DomainPackSpec, source?: string): DomainPackSpecPublic method; parameters and return type are shown in the signature.
registerManymethodregisterMany(entries: DomainPackRegistryEntry[]): DomainPackSpec[]Public method; parameters and return type are shown in the signature.
resolvemethodresolve(id: string, version?: string): DomainPackRegistryEntry | undefinedPublic method; parameters and return type are shown in the signature.

LocalDomainPackLoader

Local Domain Pack Loader class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { LocalDomainPackLoader } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare class LocalDomainPackLoader {
    constructor(options: LocalDomainPackLoaderOptions);
    load(): Promise<DomainPackRegistryEntry[]>;
    loadInto(registry: DomainPackRegistry): Promise<DomainPackSpec[]>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: LocalDomainPackLoaderOptions): LocalDomainPackLoaderCreates an instance of this class.
loadmethodload(): Promise<DomainPackRegistryEntry[]>Public method; parameters and return type are shown in the signature.
loadIntomethodloadInto(registry: DomainPackRegistry): Promise<DomainPackSpec[]>Public method; parameters and return type are shown in the signature.

WorkflowCompiler

Workflow Compiler class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { WorkflowCompiler } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare class WorkflowCompiler {
    compile(domainPack: DomainPackSpec, options?: WorkflowCompileOptions): FSMProcessSpec;
}

Public members

MemberKindSignatureDescription
compilemethodcompile(domainPack: DomainPackSpec, options?: WorkflowCompileOptions): FSMProcessSpecPublic method; parameters and return type are shown in the signature.
constructorconstructor(): WorkflowCompilerCreates an instance of this class.

businessRuleEffectSchema

Runtime schema for Business Rule Effect.

  • Kind: constant
  • Import: import { businessRuleEffectSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleEffectSchema: z.ZodEnum<["constraint", "precondition", "postcondition", "guidance"]>;

businessRuleScopeSchema

Runtime schema for Business Rule Scope.

  • Kind: constant
  • Import: import { businessRuleScopeSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleScopeSchema: z.ZodEnum<["domain", "task", "workflow", "state", "tool", "memory", "output"]>;

businessRuleSpecDefinition

Runtime validation entrypoint for the Business Rule spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { businessRuleSpecDefinition } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleSpecDefinition: SpecSchemaDefinition<BusinessRuleSpec>;

businessRuleSpecExample

Valid example value for Business Rule Spec.

  • Kind: constant
  • Import: import { businessRuleSpecExample } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleSpecExample: BusinessRuleSpec;

businessRuleSpecJsonSchema

JSON Schema for Business Rule Spec.

  • Kind: constant
  • Import: import { businessRuleSpecJsonSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleSpecJsonSchema: JsonSchema;

businessRuleSpecSchema

Runtime schema for Business Rule Spec.

  • Kind: constant
  • Import: import { businessRuleSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const businessRuleSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { scope: z.ZodEnum<["domain", "task", "workflow", "state", "tool", "memory", "output"]>; effect: z.ZodEnum<["constraint", "precondition", "postcondition", "guidance"]>; expression: z.ZodOptional<z.ZodString>; inputSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; outputContractRef: z.ZodOptional<z.ZodString>; policyRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; evaluationRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { id: string; version: string; scope: "domain" | "task" | "workflow" | "state" | "tool" | "memory" | "output"; effect: "constraint" | "precondition" | "postcondition" | "guidance"; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadata?: Record<string, unknown> | undefined; expression?: string | undefined; inputSchema?: JsonSchema | undefined; outputContractRef?: string | undefined; policyRefs?: string[] | undefined; evaluationRefs?: string[] | undefined; severity?: "low" | "medium" | "high" | "critical" | undefined; }, { id: string; version: string; scope: "domain" | "task" | "workflow" | "state" | "tool" | "memory" | "output"; effect: "constraint" | "precondition" | "postcondition" | "guidance"; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadata?: Record<string, unknown> | undefined; expression?: string | undefined; inputSchema?: JsonSchema | undefined; outputContractRef?: string | undefined; policyRefs?: string[] | undefined; evaluationRefs?: string[] | undefined; severity?: "low" | "medium" | "high" | "critical" | undefined; }>;

DOMAIN_COMPILER_VERSION

DOMAIN COMPILER VERSION constant exported by the index module.

  • Kind: constant
  • Import: import { DOMAIN_COMPILER_VERSION } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const DOMAIN_COMPILER_VERSION: "1.0.0";

domainAgenticReasoningModeSchema

Runtime schema for Domain Agentic Reasoning Mode.

  • Kind: constant
  • Import: import { domainAgenticReasoningModeSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainAgenticReasoningModeSchema: z.ZodEnum<["react", "fsm_react", "tot", "critique"]>;

domainPackSpecDefinition

Runtime validation entrypoint for the Domain Pack spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { domainPackSpecDefinition } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainPackSpecDefinition: SpecSchemaDefinition<DomainPackSpec>;

domainPackSpecExample

Valid example value for Domain Pack Spec.

  • Kind: constant
  • Import: import { domainPackSpecExample } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainPackSpecExample: DomainPackSpec;

domainPackSpecJsonSchema

JSON Schema for Domain Pack Spec.

  • Kind: constant
  • Import: import { domainPackSpecJsonSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainPackSpecJsonSchema: JsonSchema;

domainPackSpecSchema

Runtime schema for Domain Pack Spec.

  • Kind: constant
  • Import: import { domainPackSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const domainPackSpecSchema: (typeof import('@codesoul-co/hypha-domain'))['domainPackSpecSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

domainPromptRefSchema

Runtime schema for Domain Prompt Ref.

  • Kind: constant
  • Import: import { domainPromptRefSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainPromptRefSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; } & { required: z.ZodOptional<z.ZodBoolean>; priority: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; version?: string | undefined; revision?: string | undefined; required?: boolean | undefined; priority?: number | undefined; }, { id: string; version?: string | undefined; revision?: string | undefined; required?: boolean | undefined; priority?: number | undefined; }>;

domainReasoningPersistenceSchema

Runtime schema for Domain Reasoning Persistence.

  • Kind: constant
  • Import: import { domainReasoningPersistenceSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainReasoningPersistenceSchema: z.ZodEnum<["summary_only", "events_only"]>;

domainSpecDefinitions

Domain Spec Definitions constant exported by the index module.

  • Kind: constant
  • Import: import { domainSpecDefinitions } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainSpecDefinitions: readonly [SpecSchemaDefinition<WorkflowSpec>, SpecSchemaDefinition<ReasoningSpec>, SpecSchemaDefinition<BusinessRuleSpec>, SpecSchemaDefinition<DomainPackSpec>];

domainSpecJsonSchemas

Domain Spec JSON Schemas constant exported by the index module.

  • Kind: constant
  • Import: import { domainSpecJsonSchemas } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainSpecJsonSchemas: Record<string, JsonSchema>;

domainThinkingModeSchema

Runtime schema for Domain Thinking Mode.

  • Kind: constant
  • Import: import { domainThinkingModeSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const domainThinkingModeSchema: z.ZodEnum<["none", "summary", "structured"]>;

reasoningSpecDefinition

Runtime validation entrypoint for the Reasoning spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { reasoningSpecDefinition } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const reasoningSpecDefinition: SpecSchemaDefinition<ReasoningSpec>;

reasoningSpecExample

Valid example value for Reasoning Spec.

  • Kind: constant
  • Import: import { reasoningSpecExample } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const reasoningSpecExample: ReasoningSpec;

reasoningSpecJsonSchema

JSON Schema for Reasoning Spec.

  • Kind: constant
  • Import: import { reasoningSpecJsonSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const reasoningSpecJsonSchema: JsonSchema;

reasoningSpecSchema

Runtime schema for Reasoning Spec.

  • Kind: constant
  • Import: import { reasoningSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const reasoningSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { thinkingMode: z.ZodEnum<["none", "summary", "structured"]>; agenticMode: z.ZodEnum<["react", "fsm_react", "tot", "critique"]>; maxSteps: z.ZodOptional<z.ZodNumber>; persist: z.ZodOptional<z.ZodEnum<["summary_only", "events_only"]>>; plannerRef: z.ZodOptional<z.ZodString>; reasonerRef: z.ZodOptional<z.ZodString>; metadataSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { id: string; version: string; thinkingMode: "none" | "summary" | "structured"; agenticMode: "react" | "fsm_react" | "tot" | "critique"; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; maxSteps?: number | undefined; persist?: "summary_only" | "events_only" | undefined; plannerRef?: string | undefined; reasonerRef?: string | undefined; metadataSchema?: JsonSchema | undefined; metadata?: Record<string, unknown> | undefined; }, { id: string; version: string; thinkingMode: "none" | "summary" | "structured"; agenticMode: "react" | "fsm_react" | "tot" | "critique"; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; maxSteps?: number | undefined; persist?: "summary_only" | "events_only" | undefined; plannerRef?: string | undefined; reasonerRef?: string | undefined; metadataSchema?: JsonSchema | undefined; metadata?: Record<string, unknown> | undefined; }>;

riskProfileSpecSchema

Runtime schema for Risk Profile Spec.

  • Kind: constant
  • Import: import { riskProfileSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const riskProfileSpecSchema: z.ZodObject<{ defaultRiskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>; escalationPolicyRef: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }>;

sessionProfileSpecSchema

Runtime schema for Session Profile Spec.

  • Kind: constant
  • Import: import { sessionProfileSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const sessionProfileSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { metadataSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; defaultMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; defaultMemoryProfileRef: z.ZodOptional<z.ZodString>; defaultContextProfileRef: z.ZodOptional<z.ZodString>; defaultReasoningProfileRef: z.ZodOptional<z.ZodString>; defaultToolProfileRef: z.ZodOptional<z.ZodString>; defaultMCPProfileRef: z.ZodOptional<z.ZodString>; defaultSkillPolicyRef: z.ZodOptional<z.ZodString>; defaultPolicyRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { id: string; version: string; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadataSchema?: JsonSchema | undefined; defaultMetadata?: Record<string, unknown> | undefined; defaultMemoryProfileRef?: string | undefined; defaultContextProfileRef?: string | undefined; defaultReasoningProfileRef?: string | undefined; defaultToolProfileRef?: string | undefined; defaultMCPProfileRef?: string | undefined; defaultSkillPolicyRef?: string | undefined; defaultPolicyRefs?: string[] | undefined; }, { id: string; version: string; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadataSchema?: JsonSchema | undefined; defaultMetadata?: Record<string, unknown> | undefined; defaultMemoryProfileRef?: string | undefined; defaultContextProfileRef?: string | undefined; defaultReasoningProfileRef?: string | undefined; defaultToolProfileRef?: string | undefined; defaultMCPProfileRef?: string | undefined; defaultSkillPolicyRef?: string | undefined; defaultPolicyRefs?: string[] | undefined; }>;

skillPolicyBindingSchema

Runtime schema for Skill Policy Binding.

  • Kind: constant
  • Import: import { skillPolicyBindingSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const skillPolicyBindingSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { skillRef: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?: string | undefined; }, { id: string; revision?: string | undefined; version?: string | undefined; }>; policyRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; requiredTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; trustLevel: z.ZodOptional<z.ZodEnum<["trusted", "reviewed", "untrusted"]>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { id: string; version: string; skillRef: { id: string; revision?: string | undefined; version?: string | undefined; }; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadata?: Record<string, unknown> | undefined; policyRefs?: string[] | undefined; allowedTools?: string[] | undefined; requiredTools?: string[] | undefined; trustLevel?: "trusted" | "reviewed" | "untrusted" | undefined; }, { id: string; version: string; skillRef: { id: string; revision?: string | undefined; version?: string | undefined; }; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; metadata?: Record<string, unknown> | undefined; policyRefs?: string[] | undefined; allowedTools?: string[] | undefined; requiredTools?: string[] | undefined; trustLevel?: "trusted" | "reviewed" | "untrusted" | undefined; }>;

taskSchemaSpecSchema

Runtime schema for Task Schema Spec.

  • Kind: constant
  • Import: import { taskSchemaSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const taskSchemaSpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { taskType: z.ZodString; inputSchema: z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>; constraintsSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; acceptanceCriteriaSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; outputContractRef: z.ZodString; riskProfile: z.ZodOptional<z.ZodObject<{ defaultRiskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>; escalationPolicyRef: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }, { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; }>>; defaultWorkflowRef: z.ZodOptional<z.ZodString>; defaultSkillRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?: string | undefined; }, { id: string; revision?: string | undefined; version?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; version: string; inputSchema: JsonSchema; outputContractRef: string; taskType: string; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; constraintsSchema?: JsonSchema | undefined; acceptanceCriteriaSchema?: JsonSchema | undefined; riskProfile?: { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; } | undefined; defaultWorkflowRef?: string | undefined; defaultSkillRefs?: { id: string; revision?: string | undefined; version?: string | undefined; }[] | undefined; }, { id: string; version: string; inputSchema: JsonSchema; outputContractRef: string; taskType: string; name?: string | undefined; description?: string | undefined; owner?: string | undefined; tags?: string[] | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; constraintsSchema?: JsonSchema | undefined; acceptanceCriteriaSchema?: JsonSchema | undefined; riskProfile?: { defaultRiskLevel: "low" | "medium" | "high" | "critical"; escalationPolicyRef?: string | undefined; } | undefined; defaultWorkflowRef?: string | undefined; defaultSkillRefs?: { id: string; revision?: string | undefined; version?: string | undefined; }[] | undefined; }>;

workflowSpecDefinition

Runtime validation entrypoint for the Workflow spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { workflowSpecDefinition } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const workflowSpecDefinition: SpecSchemaDefinition<WorkflowSpec>;

workflowSpecExample

Valid example value for Workflow Spec.

  • Kind: constant
  • Import: import { workflowSpecExample } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const workflowSpecExample: WorkflowSpec;

workflowSpecJsonSchema

JSON Schema for Workflow Spec.

  • Kind: constant
  • Import: import { workflowSpecJsonSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const workflowSpecJsonSchema: JsonSchema;

workflowSpecSchema

Runtime schema for Workflow Spec.

  • Kind: constant
  • Import: import { workflowSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const workflowSpecSchema: (typeof import('@codesoul-co/hypha-domain'))['workflowSpecSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

workflowStateSpecSchema

Runtime schema for Workflow State Spec.

  • Kind: constant
  • Import: import { workflowStateSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const workflowStateSpecSchema: (typeof import('@codesoul-co/hypha-domain'))['workflowStateSpecSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

workflowTransitionSpecSchema

Runtime schema for Workflow Transition Spec.

  • Kind: constant
  • Import: import { workflowTransitionSpecSchema } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare const workflowTransitionSpecSchema: z.ZodObject<{ from: z.ZodString; to: z.ZodString; guard: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { from: string; to: string; description?: string | undefined; guard?: string | undefined; }, { from: string; to: string; description?: string | undefined; guard?: string | undefined; }>;

applyDomainAgentPatch

Apply Domain Agent Patch function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { applyDomainAgentPatch } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function applyDomainAgentPatch<TAgent extends DomainAgentPatchTarget>(agent: TAgent, patch: DomainAgentPatch): TAgent;

Call signature

text
applyDomainAgentPatch<TAgent extends DomainAgentPatchTarget>(agent: TAgent, patch: DomainAgentPatch): TAgent

Parameters

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

Returns

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

compileDomainPackToHarnessedSystem

Compile Domain Pack To Harnessed System function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { compileDomainPackToHarnessedSystem } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function compileDomainPackToHarnessedSystem(input: DomainPackSpec, options: DomainCompileOptions): DomainCompilationResult;

Call signature

text
compileDomainPackToHarnessedSystem(input: DomainPackSpec, options: DomainCompileOptions): DomainCompilationResult

Parameters

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

Returns

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

compileWorkflowToFSM

Compile Workflow To FSM function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { compileWorkflowToFSM } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function compileWorkflowToFSM(domainPack: DomainPackSpec, options?: WorkflowCompileOptions): FSMProcessSpec;

Call signature

text
compileWorkflowToFSM(domainPack: DomainPackSpec, options?: WorkflowCompileOptions): FSMProcessSpec

Parameters

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

Returns

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

createWorkflowDependencySnapshot

Create Workflow Dependency Snapshot function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createWorkflowDependencySnapshot } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function createWorkflowDependencySnapshot(input: Omit<WorkflowDependencySnapshot, 'dependencyHash'>): WorkflowDependencySnapshot;

Call signature

text
createWorkflowDependencySnapshot(input: Omit<WorkflowDependencySnapshot, "dependencyHash">): WorkflowDependencySnapshot

Parameters

ParameterTypeRequiredDescription
inputOmit<WorkflowDependencySnapshot, "dependencyHash">YesRequired parameter; accepted values are defined by the type column.

Returns

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

extendDomainPack

Extend Domain Pack function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { extendDomainPack } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function extendDomainPack(base: DomainPackSpec, overlay: DomainPackOverlay): DomainPackSpec;

Call signature

text
extendDomainPack(base: DomainPackSpec, overlay: DomainPackOverlay): DomainPackSpec

Parameters

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

Returns

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

initializeDomainSession

Initialize Domain Session function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { initializeDomainSession } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function initializeDomainSession(domainPack: DomainPackSpec, options?: DomainSessionInitOptions): DomainSessionInitialization;

Call signature

text
initializeDomainSession(domainPack: DomainPackSpec, options?: DomainSessionInitOptions): DomainSessionInitialization

Parameters

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

Returns

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

listLocalDomainPackFiles

List Local Domain Pack Files function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { listLocalDomainPackFiles } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function listLocalDomainPackFiles(directory: string, recursive?: boolean, extensions?: string[]): Promise<string[]>;

Call signature

text
listLocalDomainPackFiles(directory: string, recursive?: boolean, extensions?: string[]): Promise<string[]>

Parameters

ParameterTypeRequiredDescription
directorystringYesRequired parameter; accepted values are defined by the type column.
recursivebooleanNoOptional parameter; accepted values are defined by the type column.
extensionsstring[]NoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: Promise<string[]>
  • Description: The return contract is defined by the type shown above.

loadDomainPackFile

Load Domain Pack File function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { loadDomainPackFile } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function loadDomainPackFile(filePath: string): Promise<DomainPackSpec>;

Call signature

text
loadDomainPackFile(filePath: string): Promise<DomainPackSpec>

Parameters

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

Returns

  • Type: Promise<DomainPackSpec>
  • Description: The return contract is defined by the type shown above.

parseDomainPackDocument

Parse Domain Pack Document function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { parseDomainPackDocument } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function parseDomainPackDocument(raw: string, filePath?: string): DomainPackSpec;

Call signature

text
parseDomainPackDocument(raw: string, filePath?: string): DomainPackSpec

Parameters

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

Returns

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

resolveWorkflowToolExecutionScope

Resolve Workflow Tool Execution Scope function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { resolveWorkflowToolExecutionScope } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function resolveWorkflowToolExecutionScope(workflowStates: WorkflowStateBinding[], stateId: string): ToolExecutionScope;

Call signature

text
resolveWorkflowToolExecutionScope(workflowStates: WorkflowStateBinding[], stateId: string): ToolExecutionScope

Parameters

ParameterTypeRequiredDescription
workflowStatesWorkflowStateBinding[]YesRequired parameter; accepted values are defined by the type column.
stateIdstringYesRequired parameter; accepted values are defined by the type column.

Returns

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

validateDomainPackSpec

Validate Domain Pack Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateDomainPackSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function validateDomainPackSpec(input: unknown): DomainPackSpec;

Call signature

text
validateDomainPackSpec(input: unknown): DomainPackSpec

Parameters

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

Returns

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

validateWorkflowSpec

Validate Workflow Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateWorkflowSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export declare function validateWorkflowSpec(input: unknown): WorkflowSpec;

Call signature

text
validateWorkflowSpec(input: unknown): WorkflowSpec

Parameters

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

Returns

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

BusinessRuleSpec

Business Rule Spec interface with 17 public fields or methods.

  • Kind: interface
  • Import: import type { BusinessRuleSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface BusinessRuleSpec extends VersionedSpec, SpecMetadata {
    scope: BusinessRuleScope;
    effect: BusinessRuleEffect;
    expression?: string;
    inputSchema?: JsonSchema;
    outputContractRef?: string;
    policyRefs?: string[];
    evaluationRefs?: string[];
    severity?: RiskLevel;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
effectpropertyeffect: BusinessRuleEffectPublic property; its type, readonly modifier and optionality are shown in the signature.
evaluationRefspropertyevaluationRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
expressionpropertyexpression?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputSchemapropertyinputSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputContractRefpropertyoutputContractRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: BusinessRuleScopePublic property; its type, readonly modifier and optionality are shown in the signature.
severitypropertyseverity?: RiskLevelPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainAgentPatch

Domain Agent Patch interface with 9 public fields or methods.

  • Kind: interface
  • Import: import type { DomainAgentPatch } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainAgentPatch {
    promptRefs: DomainPromptRef[];
    skillRefs: SkillRef[];
    toolRefs: string[];
    memoryProfileRef?: string;
    mcpProfileRef?: string;
    contextSpecRef?: SpecRef;
    reasoningProfileRef?: string;
    policyRefs?: string[];
    metadata: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
contextSpecRefpropertycontextSpecRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
mcpProfileRefpropertymcpProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileRefpropertymemoryProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
promptRefspropertypromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileRefpropertyreasoningProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
skillRefspropertyskillRefs: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolRefspropertytoolRefs: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

DomainAgentPatchTarget

Domain Agent Patch Target interface with 12 public fields or methods.

  • Kind: interface
  • Import: import type { DomainAgentPatchTarget } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainAgentPatchTarget {
    [key: string]: unknown;
    id?: string;
    version?: string;
    name?: string;
    modelAlias?: string;
    systemInstructions?: string;
    promptRefs?: DomainPromptRef[];
    skillRefs?: SkillRef[];
    toolRefs?: string[];
    memoryProfileRef?: string;
    contextSpecRef?: SpecRef;
    policyRefs?: string[];
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
contextSpecRefpropertycontextSpecRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileRefpropertymemoryProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
modelAliaspropertymodelAlias?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
promptRefspropertypromptRefs?: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillRefspropertyskillRefs?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
systemInstructionspropertysystemInstructions?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolRefspropertytoolRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainBindingResolution

Domain Binding Resolution interface with 23 public fields or methods.

  • Kind: interface
  • Import: import type { DomainBindingResolution } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainBindingResolution {
    domainPackRef: SpecRef;
    taskSchema?: TaskSchemaSpec;
    outputContract?: OutputContractSpec;
    sessionProfile?: SessionProfileSpec;
    workflow: WorkflowSpec;
    memoryProfile?: MemorySpec;
    mcpProfile?: MCPIntegrationSpec;
    contextProfile?: ContextSpec;
    reasoningProfile?: ReasoningSpec;
    mcpProfiles: MCPIntegrationSpec[];
    reasoningProfiles: ReasoningSpec[];
    policies: PolicySpec[];
    evaluations: EvaluationSpec[];
    regressionCases: RegressionSpec[];
    businessRules: BusinessRuleSpec[];
    tools: ToolSpec[];
    toolProfiles: ToolProfileSpec[];
    allowedSkills: SkillRef[];
    defaultSkills: SkillRef[];
    skillPolicies: SkillPolicyBinding[];
    allowedPromptRefs: DomainPromptRef[];
    defaultPromptRefs: DomainPromptRef[];
    workflowStates: WorkflowStateBinding[];
}

Contract members

MemberKindSignatureDescription
allowedPromptRefspropertyallowedPromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedSkillspropertyallowedSkills: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
businessRulespropertybusinessRules: BusinessRuleSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
contextProfilepropertycontextProfile?: ContextSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultPromptRefspropertydefaultPromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
defaultSkillspropertydefaultSkills: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefpropertydomainPackRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
evaluationspropertyevaluations: EvaluationSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
mcpProfilepropertymcpProfile?: MCPIntegrationSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
mcpProfilespropertymcpProfiles: MCPIntegrationSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
memoryProfilepropertymemoryProfile?: MemorySpecPublic property; its type, readonly modifier and optionality are shown in the signature.
outputContractpropertyoutputContract?: OutputContractSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
policiespropertypolicies: PolicySpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfilepropertyreasoningProfile?: ReasoningSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfilespropertyreasoningProfiles: ReasoningSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
regressionCasespropertyregressionCases: RegressionSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
sessionProfilepropertysessionProfile?: SessionProfileSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
skillPoliciespropertyskillPolicies: SkillPolicyBinding[]Public property; its type, readonly modifier and optionality are shown in the signature.
taskSchemapropertytaskSchema?: TaskSchemaSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
toolProfilespropertytoolProfiles: ToolProfileSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolspropertytools: ToolSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
workflowpropertyworkflow: WorkflowSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowStatespropertyworkflowStates: WorkflowStateBinding[]Public property; its type, readonly modifier and optionality are shown in the signature.

DomainCompilationAudit

Domain Compilation Audit interface with 9 public fields or methods.

  • Kind: interface
  • Import: import type { DomainCompilationAudit } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainCompilationAudit {
    compilationHash: string;
    domainPackRef: SpecRef;
    workflowRef: SpecRef;
    agentRef: SpecRef;
    promptRefs: DomainPromptRef[];
    skillRefs: SkillRef[];
    toolRefs: SpecRef[];
    mcpRefs: SpecRef[];
    workflowStateBindingsHash: string;
}

Contract members

MemberKindSignatureDescription
agentRefpropertyagentRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
compilationHashpropertycompilationHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefpropertydomainPackRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
mcpRefspropertymcpRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
promptRefspropertypromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillRefspropertyskillRefs: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolRefspropertytoolRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
workflowRefpropertyworkflowRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowStateBindingsHashpropertyworkflowStateBindingsHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainCompilationResult

Domain Compilation Result interface with 11 public fields or methods.

  • Kind: interface
  • Import: import type { DomainCompilationResult } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainCompilationResult {
    domainPack: DomainPackSpec;
    bindings: DomainBindingResolution;
    fsmProcess: FSMProcessSpec;
    workflowRef: SpecRef;
    compilerVersion: string;
    processHash: string;
    dependencySnapshot: WorkflowDependencySnapshot;
    harnessedSystem: HarnessedAgentSystemSpec;
    agentPatch: DomainAgentPatch;
    sessionInitialization: DomainSessionInitialization;
    audit: DomainCompilationAudit;
}

Contract members

MemberKindSignatureDescription
agentPatchpropertyagentPatch: DomainAgentPatchPublic property; its type, readonly modifier and optionality are shown in the signature.
auditpropertyaudit: DomainCompilationAuditPublic property; its type, readonly modifier and optionality are shown in the signature.
bindingspropertybindings: DomainBindingResolutionPublic property; its type, readonly modifier and optionality are shown in the signature.
compilerVersionpropertycompilerVersion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
dependencySnapshotpropertydependencySnapshot: WorkflowDependencySnapshotPublic property; its type, readonly modifier and optionality are shown in the signature.
domainPackpropertydomainPack: DomainPackSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
fsmProcesspropertyfsmProcess: FSMProcessSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
harnessedSystempropertyharnessedSystem: HarnessedAgentSystemSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
processHashpropertyprocessHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionInitializationpropertysessionInitialization: DomainSessionInitializationPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowRefpropertyworkflowRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainCompileOptions

Domain Compile Options interface with 20 public fields or methods.

  • Kind: interface
  • Import: import type { DomainCompileOptions } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainCompileOptions {
    systemId?: string;
    systemVersion?: string;
    agentRef: SpecRef;
    agentSkillRefs?: SkillRef[];
    agentToolRefs?: string[];
    taskSchemaId?: string;
    workflowId?: string;
    sessionProfileId?: string;
    memoryProfileId?: string;
    mcpProfileId?: string;
    contextProfileId?: string;
    reasoningProfileId?: string;
    policyRefs?: string[];
    evaluationRefs?: string[];
    traceRef?: SpecRef;
    modelProfileRef?: SpecRef;
    replayRef?: SpecRef;
    regressionRef?: SpecRef;
    deploymentRef?: SpecRef;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
agentRefpropertyagentRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
agentSkillRefspropertyagentSkillRefs?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
agentToolRefspropertyagentToolRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
contextProfileIdpropertycontextProfileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deploymentRefpropertydeploymentRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
evaluationRefspropertyevaluationRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
mcpProfileIdpropertymcpProfileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileIdpropertymemoryProfileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
modelProfileRefpropertymodelProfileRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileIdpropertyreasoningProfileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
regressionRefpropertyregressionRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
replayRefpropertyreplayRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionProfileIdpropertysessionProfileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
systemIdpropertysystemId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
systemVersionpropertysystemVersion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
taskSchemaIdpropertytaskSchemaId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
traceRefpropertytraceRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowIdpropertyworkflowId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainPackRegistryEntry

Domain Pack Registry Entry interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { DomainPackRegistryEntry } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainPackRegistryEntry {
    spec: DomainPackSpec;
    source?: string;
}

Contract members

MemberKindSignatureDescription
sourcepropertysource?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
specpropertyspec: DomainPackSpecPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainPackSpec

Domain Pack Spec interface with 31 public fields or methods.

  • Kind: interface
  • Import: import type { DomainPackSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainPackSpec extends VersionedSpec, SpecMetadata {
    name: string;
    taskSchemas: TaskSchemaSpec[];
    outputContracts: OutputContractSpec[];
    sessionProfiles?: SessionProfileSpec[];
    workflows: WorkflowSpec[];
    defaultWorkflow?: string;
    allowedSkills?: SkillRef[];
    defaultSkills?: SkillRef[];
    skillPolicies?: SkillPolicyBinding[];
    allowedPromptRefs?: DomainPromptRef[];
    defaultPromptRefs?: DomainPromptRef[];
    tools?: ToolSpec[];
    toolProfiles?: ToolProfileSpec[];
    mcpProfiles?: MCPIntegrationSpec[];
    memoryProfiles?: MemorySpec[];
    contextProfiles?: ContextSpec[];
    reasoningProfiles?: ReasoningSpec[];
    defaultReasoningProfile?: string;
    businessRules?: BusinessRuleSpec[];
    policies?: PolicySpec[];
    evaluationProfiles?: EvaluationSpec[];
    regressionCases?: RegressionSpec[];
    deploymentProfile?: DeploymentSpec;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
allowedPromptRefspropertyallowedPromptRefs?: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedSkillspropertyallowedSkills?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
businessRulespropertybusinessRules?: BusinessRuleSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
contextProfilespropertycontextProfiles?: ContextSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultPromptRefspropertydefaultPromptRefs?: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
defaultReasoningProfilepropertydefaultReasoningProfile?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultSkillspropertydefaultSkills?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
defaultWorkflowpropertydefaultWorkflow?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deploymentProfilepropertydeploymentProfile?: DeploymentSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
evaluationProfilespropertyevaluationProfiles?: EvaluationSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
mcpProfilespropertymcpProfiles?: MCPIntegrationSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
memoryProfilespropertymemoryProfiles?: MemorySpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputContractspropertyoutputContracts: OutputContractSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
policiespropertypolicies?: PolicySpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfilespropertyreasoningProfiles?: ReasoningSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
regressionCasespropertyregressionCases?: RegressionSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
sessionProfilespropertysessionProfiles?: SessionProfileSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillPoliciespropertyskillPolicies?: SkillPolicyBinding[]Public property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
taskSchemaspropertytaskSchemas: TaskSchemaSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolProfilespropertytoolProfiles?: ToolProfileSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolspropertytools?: ToolSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowspropertyworkflows: WorkflowSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.

DomainPromptRef

Domain Prompt Ref interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { DomainPromptRef } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainPromptRef extends SpecRef {
    required?: boolean;
    priority?: number;
}

Contract members

MemberKindSignatureDescription
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
prioritypropertypriority?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
requiredpropertyrequired?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
revisionpropertyrevision?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainSessionInitialization

Domain Session Initialization interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { DomainSessionInitialization } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainSessionInitialization {
    domainPackRef: SpecRef;
    sessionProfileRef?: SpecRef;
    metadata: Record<string, unknown>;
    memoryProfileRef?: string;
    contextProfileRef?: string;
    reasoningProfileRef?: string;
    toolProfileRef?: string;
    mcpProfileRef?: string;
    skillPolicyRef?: string;
    policyRefs?: string[];
}

Contract members

MemberKindSignatureDescription
contextProfileRefpropertycontextProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefpropertydomainPackRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
mcpProfileRefpropertymcpProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileRefpropertymemoryProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileRefpropertyreasoningProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionProfileRefpropertysessionProfileRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
skillPolicyRefpropertyskillPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolProfileRefpropertytoolProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

DomainSessionInitOptions

Domain Session Init Options interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { DomainSessionInitOptions } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface DomainSessionInitOptions {
    profileId?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
profileIdpropertyprofileId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

LocalDomainPackLoaderOptions

Local Domain Pack Loader Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { LocalDomainPackLoaderOptions } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface LocalDomainPackLoaderOptions {
    directories: string[];
    recursive?: boolean;
    extensions?: string[];
}

Contract members

MemberKindSignatureDescription
directoriespropertydirectories: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
extensionspropertyextensions?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
recursivepropertyrecursive?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

ReasoningSpec

Reasoning Spec interface with 16 public fields or methods.

  • Kind: interface
  • Import: import type { ReasoningSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface ReasoningSpec extends VersionedSpec, SpecMetadata {
    thinkingMode: DomainThinkingMode;
    agenticMode: DomainAgenticReasoningMode;
    maxSteps?: number;
    persist?: DomainReasoningPersistence;
    plannerRef?: string;
    reasonerRef?: string;
    metadataSchema?: JsonSchema;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
agenticModepropertyagenticMode: DomainAgenticReasoningModePublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
maxStepspropertymaxSteps?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
metadataSchemapropertymetadataSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
persistpropertypersist?: DomainReasoningPersistencePublic property; its type, readonly modifier and optionality are shown in the signature.
plannerRefpropertyplannerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonerRefpropertyreasonerRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
thinkingModepropertythinkingMode: DomainThinkingModePublic property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RiskProfileSpec

Risk Profile Spec interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { RiskProfileSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface RiskProfileSpec {
    defaultRiskLevel: RiskLevel;
    escalationPolicyRef?: string;
}

Contract members

MemberKindSignatureDescription
defaultRiskLevelpropertydefaultRiskLevel: RiskLevelPublic property; its type, readonly modifier and optionality are shown in the signature.
escalationPolicyRefpropertyescalationPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

SessionProfileSpec

Session Profile Spec interface with 17 public fields or methods.

  • Kind: interface
  • Import: import type { SessionProfileSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface SessionProfileSpec extends VersionedSpec, SpecMetadata {
    metadataSchema?: JsonSchema;
    defaultMetadata?: Record<string, unknown>;
    defaultMemoryProfileRef?: string;
    defaultContextProfileRef?: string;
    defaultReasoningProfileRef?: string;
    defaultToolProfileRef?: string;
    defaultMCPProfileRef?: string;
    defaultSkillPolicyRef?: string;
    defaultPolicyRefs?: string[];
}

Contract members

MemberKindSignatureDescription
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultContextProfileRefpropertydefaultContextProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultMCPProfileRefpropertydefaultMCPProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultMemoryProfileRefpropertydefaultMemoryProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultMetadatapropertydefaultMetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
defaultPolicyRefspropertydefaultPolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
defaultReasoningProfileRefpropertydefaultReasoningProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultSkillPolicyRefpropertydefaultSkillPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultToolProfileRefpropertydefaultToolProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadataSchemapropertymetadataSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

SkillPolicyBinding

Skill Policy Binding interface with 14 public fields or methods.

  • Kind: interface
  • Import: import type { SkillPolicyBinding } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface SkillPolicyBinding extends VersionedSpec, SpecMetadata {
    skillRef: SkillRef;
    policyRefs?: string[];
    allowedTools?: string[];
    requiredTools?: string[];
    trustLevel?: 'trusted' | 'reviewed' | 'untrusted';
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
allowedToolspropertyallowedTools?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
requiredToolspropertyrequiredTools?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillRefpropertyskillRef: SkillRefPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
trustLevelpropertytrustLevel?: "trusted" | "reviewed" | "untrusted"Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

TaskInstance

Task Instance interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { TaskInstance } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface TaskInstance<TInput = unknown, TConstraints = unknown> {
    id: string;
    domainId: string;
    taskSchemaId: string;
    input: TInput;
    constraints?: TConstraints;
    acceptanceCriteria?: unknown;
    riskLevel?: RiskLevel;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
acceptanceCriteriapropertyacceptanceCriteria?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
constraintspropertyconstraints?: TConstraintsPublic property; its type, readonly modifier and optionality are shown in the signature.
domainIdpropertydomainId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputpropertyinput: TInputPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
riskLevelpropertyriskLevel?: RiskLevelPublic property; its type, readonly modifier and optionality are shown in the signature.
taskSchemaIdpropertytaskSchemaId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

TaskSchemaSpec

Task Schema Spec interface with 16 public fields or methods.

  • Kind: interface
  • Import: import type { TaskSchemaSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface TaskSchemaSpec extends VersionedSpec, SpecMetadata {
    taskType: string;
    inputSchema: JsonSchema;
    constraintsSchema?: JsonSchema;
    acceptanceCriteriaSchema?: JsonSchema;
    outputContractRef: string;
    riskProfile?: RiskProfileSpec;
    defaultWorkflowRef?: string;
    defaultSkillRefs?: SkillRef[];
}

Contract members

MemberKindSignatureDescription
acceptanceCriteriaSchemapropertyacceptanceCriteriaSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
constraintsSchemapropertyconstraintsSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultSkillRefspropertydefaultSkillRefs?: SkillRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
defaultWorkflowRefpropertydefaultWorkflowRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputSchemapropertyinputSchema: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputContractRefpropertyoutputContractRef: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
riskProfilepropertyriskProfile?: RiskProfileSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
taskTypepropertytaskType: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

WorkflowCompileOptions

Workflow Compile Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowCompileOptions } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowCompileOptions {
    workflowId?: string;
    /** @deprecated Harness FSM identity is framework-owned and cannot be overridden. */
    fsmProcessId?: string;
    agentRef?: SpecRef;
}

Contract members

MemberKindSignatureDescription
agentRefpropertyagentRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
fsmProcessIdpropertyfsmProcessId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowIdpropertyworkflowId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

WorkflowDependencySnapshot

Workflow Dependency Snapshot interface with 23 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowDependencySnapshot } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowDependencySnapshot {
    domainPackRefs: SpecRef[];
    taskSchemaRefs: SpecRef[];
    outputContractRefs: SpecRef[];
    sessionProfileRefs: SpecRef[];
    agentRefs: SpecRef[];
    skillRefs: SpecRef[];
    skillPolicyRefs: SpecRef[];
    toolRefs: SpecRef[];
    toolProfileRefs: SpecRef[];
    mcpProfileRefs: SpecRef[];
    memoryProfileRefs: SpecRef[];
    contextProfileRefs: SpecRef[];
    reasoningProfileRefs: SpecRef[];
    workspaceProfileRefs: SpecRef[];
    businessRuleRefs: SpecRef[];
    policyRefs: SpecRef[];
    evaluationRefs: SpecRef[];
    traceRefs: SpecRef[];
    modelProfileRefs: SpecRef[];
    replayRefs: SpecRef[];
    regressionRefs: SpecRef[];
    deploymentRefs: SpecRef[];
    dependencyHash: string;
}

Contract members

MemberKindSignatureDescription
agentRefspropertyagentRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
businessRuleRefspropertybusinessRuleRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
contextProfileRefspropertycontextProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
dependencyHashpropertydependencyHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deploymentRefspropertydeploymentRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefspropertydomainPackRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
evaluationRefspropertyevaluationRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
mcpProfileRefspropertymcpProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
memoryProfileRefspropertymemoryProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
modelProfileRefspropertymodelProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
outputContractRefspropertyoutputContractRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileRefspropertyreasoningProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
regressionRefspropertyregressionRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
replayRefspropertyreplayRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
sessionProfileRefspropertysessionProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillPolicyRefspropertyskillPolicyRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
skillRefspropertyskillRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
taskSchemaRefspropertytaskSchemaRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolProfileRefspropertytoolProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
toolRefspropertytoolRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
traceRefspropertytraceRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
workspaceProfileRefspropertyworkspaceProfileRefs: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.

WorkflowSpec

Workflow Spec interface with 12 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowSpec extends VersionedSpec, SpecMetadata {
    initialState: string;
    terminalStates: string[];
    states: WorkflowStateSpec[];
    transitions: WorkflowTransitionSpec[];
}

Contract members

MemberKindSignatureDescription
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
initialStatepropertyinitialState: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statespropertystates: WorkflowStateSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
terminalStatespropertyterminalStates: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
transitionspropertytransitions: WorkflowTransitionSpec[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

WorkflowStateBinding

Workflow State Binding interface with 18 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowStateBinding } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowStateBinding {
    stateId: string;
    allowedTools: string[];
    allowedSkills: string[];
    requiredSkills: string[];
    allowedPromptRefs: DomainPromptRef[];
    requiredPromptRefs: DomainPromptRef[];
    allowedMCPProfiles: string[];
    memoryPolicyRef?: string;
    reasoningProfileRef?: string;
    policyRefs: string[];
    evaluationRefs: string[];
    toolProfileRefs?: SpecRef[];
    allowedToolRefs?: SpecRef[];
    deniedToolRefs?: SpecRef[];
    allowedMCPProfileRefs?: SpecRef[];
    humanApprovalPolicyRef?: SpecRef;
    permissionScopes?: string[];
    capabilityLoadPolicy?: 'eager' | 'lazy' | 'model_selected';
}

Contract members

MemberKindSignatureDescription
allowedMCPProfileRefspropertyallowedMCPProfileRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedMCPProfilespropertyallowedMCPProfiles: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedPromptRefspropertyallowedPromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedSkillspropertyallowedSkills: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedToolRefspropertyallowedToolRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedToolspropertyallowedTools: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
capabilityLoadPolicypropertycapabilityLoadPolicy?: "eager" | "lazy" | "model_selected"Public property; its type, readonly modifier and optionality are shown in the signature.
deniedToolRefspropertydeniedToolRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
evaluationRefspropertyevaluationRefs: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
humanApprovalPolicyRefpropertyhumanApprovalPolicyRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryPolicyRefpropertymemoryPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
permissionScopespropertypermissionScopes?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileRefpropertyreasoningProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
requiredPromptRefspropertyrequiredPromptRefs: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
requiredSkillspropertyrequiredSkills: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
stateIdpropertystateId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
toolProfileRefspropertytoolProfileRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.

WorkflowStateSpec

Workflow State Spec interface with 33 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowStateSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowStateSpec extends SpecMetadata {
    id: string;
    goal: string;
    inputContract?: JsonSchema;
    outputContract?: JsonSchema;
    allowedTools?: string[];
    allowedSkills?: string[];
    requiredSkills?: string[];
    allowedPromptRefs?: DomainPromptRef[];
    requiredPromptRefs?: DomainPromptRef[];
    allowedMCPProfiles?: string[];
    toolProfileRefs?: SpecRef[];
    allowedToolRefs?: SpecRef[];
    deniedToolRefs?: SpecRef[];
    allowedMCPProfileRefs?: SpecRef[];
    humanApprovalPolicyRef?: SpecRef;
    permissionScopes?: string[];
    capabilityLoadPolicy?: 'eager' | 'lazy' | 'model_selected';
    memoryPolicyRef?: string;
    reasoningProfileRef?: string;
    policyRefs?: string[];
    evaluationRefs?: string[];
    humanReviewRef?: string;
    humanReviewPolicy?: HumanReviewPolicySpec;
    timeoutMs?: number;
    timeoutPolicy?: TimeoutPolicySpec;
    retryPolicyRef?: string;
    retryPolicy?: RetryPolicySpec;
}

Contract members

MemberKindSignatureDescription
allowedMCPProfileRefspropertyallowedMCPProfileRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedMCPProfilespropertyallowedMCPProfiles?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedPromptRefspropertyallowedPromptRefs?: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedSkillspropertyallowedSkills?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedToolRefspropertyallowedToolRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
allowedToolspropertyallowedTools?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
capabilityLoadPolicypropertycapabilityLoadPolicy?: "eager" | "lazy" | "model_selected"Public property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deniedToolRefspropertydeniedToolRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
evaluationRefspropertyevaluationRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
goalpropertygoal: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
humanApprovalPolicyRefpropertyhumanApprovalPolicyRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
humanReviewPolicypropertyhumanReviewPolicy?: HumanReviewPolicySpecPublic property; its type, readonly modifier and optionality are shown in the signature.
humanReviewRefpropertyhumanReviewRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputContractpropertyinputContract?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryPolicyRefpropertymemoryPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputContractpropertyoutputContract?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
permissionScopespropertypermissionScopes?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
policyRefspropertypolicyRefs?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
reasoningProfileRefpropertyreasoningProfileRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
requiredPromptRefspropertyrequiredPromptRefs?: DomainPromptRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
requiredSkillspropertyrequiredSkills?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
retryPolicypropertyretryPolicy?: RetryPolicySpecPublic property; its type, readonly modifier and optionality are shown in the signature.
retryPolicyRefpropertyretryPolicyRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
timeoutMspropertytimeoutMs?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
timeoutPolicypropertytimeoutPolicy?: TimeoutPolicySpecPublic property; its type, readonly modifier and optionality are shown in the signature.
toolProfileRefspropertytoolProfileRefs?: SpecRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

WorkflowTransitionSpec

Workflow Transition Spec interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { WorkflowTransitionSpec } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export interface WorkflowTransitionSpec {
    from: string;
    to: string;
    guard?: string;
    description?: string;
}

Contract members

MemberKindSignatureDescription
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
frompropertyfrom: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
guardpropertyguard?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
topropertyto: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

BusinessRuleEffect

Public type alias for Business Rule Effect; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { BusinessRuleEffect } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type BusinessRuleEffect = 'constraint' | 'precondition' | 'postcondition' | 'guidance';

BusinessRuleScope

Public type alias for Business Rule Scope; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { BusinessRuleScope } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type BusinessRuleScope = 'domain' | 'task' | 'workflow' | 'state' | 'tool' | 'memory' | 'output';

DomainAgenticReasoningMode

Public type alias for Domain Agentic Reasoning Mode; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainAgenticReasoningMode } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainAgenticReasoningMode = 'react' | 'fsm_react' | 'tot' | 'critique';

DomainPackOverlay

Public type alias for Domain Pack Overlay; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainPackOverlay } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainPackOverlay = Partial<Omit<DomainPackSpec, 'id' | 'version' | 'name' | 'taskSchemas' | 'workflows'>> & {
    id?: string;
    version?: string;
    name?: string;
    taskSchemas?: TaskSchemaSpec[];
    workflows?: WorkflowSpec[];
    remove?: DomainPackOverlayRemovals;
};

DomainPackOverlayCollection

Public type alias for Domain Pack Overlay Collection; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainPackOverlayCollection } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainPackOverlayCollection = 'taskSchemas' | 'outputContracts' | 'sessionProfiles' | 'workflows' | 'allowedSkills' | 'defaultSkills' | 'skillPolicies' | 'allowedPromptRefs' | 'defaultPromptRefs' | 'tools' | 'toolProfiles' | 'mcpProfiles' | 'memoryProfiles' | 'contextProfiles' | 'reasoningProfiles' | 'businessRules' | 'policies' | 'evaluationProfiles' | 'regressionCases';

DomainPackOverlayRemovals

Public type alias for Domain Pack Overlay Removals; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainPackOverlayRemovals } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainPackOverlayRemovals = Partial<Record<DomainPackOverlayCollection, string[]>>;

DomainReasoningPersistence

Public type alias for Domain Reasoning Persistence; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainReasoningPersistence } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainReasoningPersistence = 'summary_only' | 'events_only';

DomainThinkingMode

Public type alias for Domain Thinking Mode; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { DomainThinkingMode } from '@codesoul-co/hypha-domain';
  • Source module: index

Declaration

text
export type DomainThinkingMode = 'none' | 'summary' | 'structured';