Skip to content

@codesoul-co/hypha-core / contracts/runtime

模块用法

用于声明并运行时校验契约。Runtime 模块公开 6 常量、8 接口、6 类型。

从包入口导入

ts
import {
  RUNTIME_ERROR_CODES,
  RUNTIME_PRINCIPAL_TYPES,
  RUNTIME_RUN_STATUSES,
  RUNTIME_SESSION_STATUSES,
  RUNTIME_WAIT_STATUSES,
  RUNTIME_WAIT_TYPES,
} from '@codesoul-co/hypha-core';

import type {
  NormalizedRuntimeError,
  RunSignalRequest,
  RuntimePrincipal,
  RuntimeRun,
  RuntimeScope,
  RuntimeSession,
  RuntimeWaitRecord,
  RuntimeWaitRequest,
} from '@codesoul-co/hypha-core';

// 完整导出列表见下方。

使用要点

  • 14 个类型/接口用于应用代码、Adapter 或测试中的静态契约;请使用 import type,运行时不应依赖它们。
  • 6 个常量/枚举提供稳定值、Schema、Definition 或默认配置;应复用这些导出,避免在应用中复制内部值。

公共导出

Symbol种类签名说明
RUNTIME_ERROR_CODES常量const RUNTIME_ERROR_CODES: readonly ["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RU...contracts/runtime 模块导出的 RUNTIME ERROR CODES 常量。
RUNTIME_PRINCIPAL_TYPES常量const RUNTIME_PRINCIPAL_TYPES: readonly ["user", "agent", "service", "system"]contracts/runtime 模块导出的 RUNTIME PRINCIPAL TYPES 常量。
RUNTIME_RUN_STATUSES常量const RUNTIME_RUN_STATUSES: readonly ["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"]contracts/runtime 模块导出的 RUNTIME RUN STATUSES 常量。
RUNTIME_SESSION_STATUSES常量const RUNTIME_SESSION_STATUSES: readonly ["active", "closed", "archived"]contracts/runtime 模块导出的 RUNTIME SESSION STATUSES 常量。
RUNTIME_WAIT_STATUSES常量const RUNTIME_WAIT_STATUSES: readonly ["waiting", "received", "expired", "cancelled"]contracts/runtime 模块导出的 RUNTIME WAIT STATUSES 常量。
RUNTIME_WAIT_TYPES常量const RUNTIME_WAIT_TYPES: readonly ["human", "signal", "timer", "external_operation"]contracts/runtime 模块导出的 RUNTIME WAIT TYPES 常量。
NormalizedRuntimeError接口interface NormalizedRuntimeErrorNormalized Runtime Error 接口,共包含 7 个公开字段或方法。
RunSignalRequest接口interface RunSignalRequestRun Signal Request 接口,共包含 7 个公开字段或方法。
RuntimePrincipal接口interface RuntimePrincipalRuntime Principal 接口,共包含 8 个公开字段或方法。
RuntimeRun接口interface RuntimeRunRuntime Run 接口,共包含 32 个公开字段或方法。
RuntimeScope接口interface RuntimeScopeRuntime Scope 接口,共包含 6 个公开字段或方法。
RuntimeSession接口interface RuntimeSessionRuntime Session 接口,共包含 13 个公开字段或方法。
RuntimeWaitRecord接口interface RuntimeWaitRecordRuntime Wait Record 接口,共包含 11 个公开字段或方法。
RuntimeWaitRequest接口interface RuntimeWaitRequestRuntime Wait Request 接口,共包含 7 个公开字段或方法。
RuntimeErrorCode类型type RuntimeErrorCode = (typeof RUNTIME_ERROR_CODES)[number]Runtime Error Code 公共类型别名;完整类型表达式见声明。
RuntimePrincipalType类型type RuntimePrincipalType = (typeof RUNTIME_PRINCIPAL_TYPES)[number]Runtime Principal Type 公共类型别名;完整类型表达式见声明。
RuntimeRunStatus类型type RuntimeRunStatus = (typeof RUNTIME_RUN_STATUSES)[number]Runtime Run Status 公共类型别名;完整类型表达式见声明。
RuntimeSessionStatus类型type RuntimeSessionStatus = (typeof RUNTIME_SESSION_STATUSES)[number]Runtime Session Status 公共类型别名;完整类型表达式见声明。
RuntimeWaitStatus类型type RuntimeWaitStatus = (typeof RUNTIME_WAIT_STATUSES)[number]Runtime Wait Status 公共类型别名;完整类型表达式见声明。
RuntimeWaitType类型type RuntimeWaitType = (typeof RUNTIME_WAIT_TYPES)[number]Runtime Wait Type 公共类型别名;完整类型表达式见声明。

RUNTIME_ERROR_CODES

contracts/runtime 模块导出的 RUNTIME ERROR CODES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_ERROR_CODES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_ERROR_CODES: readonly ["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RUNTIME_RUN_CONFLICT", "RUNTIME_LEASE_CONFLICT", "RUNTIME_WORKFLOW_INVALID", "RUNTIME_PROCESS_MISMATCH", "RUNTIME_STATE_NOT_FOUND", "RUNTIME_TRANSITION_REJECTED", "RUNTIME_GUARD_FAILED", "RUNTIME_INVARIANT_FAILED", "RUNTIME_STATE_TIMEOUT", "RUNTIME_RUN_TIMEOUT", "RUNTIME_CANCELLED", "RUNTIME_SIGNAL_INVALID", "RUNTIME_SIGNAL_EXPIRED", "RUNTIME_RETRY_EXHAUSTED", "RUNTIME_CHECKPOINT_FAILED", "RUNTIME_EVENT_APPEND_FAILED", "RUNTIME_PROJECTION_FAILED", "RUNTIME_REPLAY_DIVERGENCE", "RUNTIME_INTERNAL_ERROR"];

RUNTIME_PRINCIPAL_TYPES

contracts/runtime 模块导出的 RUNTIME PRINCIPAL TYPES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_PRINCIPAL_TYPES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_PRINCIPAL_TYPES: readonly ["user", "agent", "service", "system"];

RUNTIME_RUN_STATUSES

contracts/runtime 模块导出的 RUNTIME RUN STATUSES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_RUN_STATUSES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_RUN_STATUSES: readonly ["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"];

RUNTIME_SESSION_STATUSES

contracts/runtime 模块导出的 RUNTIME SESSION STATUSES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_SESSION_STATUSES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_SESSION_STATUSES: readonly ["active", "closed", "archived"];

RUNTIME_WAIT_STATUSES

contracts/runtime 模块导出的 RUNTIME WAIT STATUSES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_WAIT_STATUSES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_WAIT_STATUSES: readonly ["waiting", "received", "expired", "cancelled"];

RUNTIME_WAIT_TYPES

contracts/runtime 模块导出的 RUNTIME WAIT TYPES 常量。

  • 种类: 常量
  • 导入: import { RUNTIME_WAIT_TYPES } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export declare const RUNTIME_WAIT_TYPES: readonly ["human", "signal", "timer", "external_operation"];

NormalizedRuntimeError

Normalized Runtime Error 接口,共包含 7 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { NormalizedRuntimeError } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface NormalizedRuntimeError {
    code: RuntimeErrorCode;
    message: string;
    retryable: boolean;
    stateId?: string;
    transitionId?: string;
    details?: Record<string, unknown>;
    causeRef?: string;
}

契约成员

成员种类签名说明
causeRef属性causeRef?: string公开属性;类型、只读和可选状态以签名列为准。
code属性code: "RUNTIME_INVALID_INPUT" | "RUNTIME_MESSAGE_BUS_UNAVAILABLE" | "RUNTIME_MESSAGE_SCHEMA_INVALID" | "RUNTIME_MESSAGE_DEAD_LETTERED" | "RUNTIME_SESSION_QUEUE_CONFLICT" | "RUNTIME_SESSION_QUEUE_OVERFLOW" | "RUNTIME_FENCING_REJECTED" | "RUNTIME_RESOURCE_CONFLICT" | "RUNTIME_IDEMPOTENCY_CONFLICT" | "RUNTIME_EVENT_STREAM_CORRUPT" | "RUNTIME_RECOVERY_REQUIRES_REVIEW" | "RUNTIME_RUN_NOT_FOUND" | "RUNTIME_RUN_CONFLICT"...公开属性;类型、只读和可选状态以签名列为准。
details属性details?: Record<string, unknown>公开属性;类型、只读和可选状态以签名列为准。
message属性message: string公开属性;类型、只读和可选状态以签名列为准。
retryable属性retryable: boolean公开属性;类型、只读和可选状态以签名列为准。
stateId属性stateId?: string公开属性;类型、只读和可选状态以签名列为准。
transitionId属性transitionId?: string公开属性;类型、只读和可选状态以签名列为准。

RunSignalRequest

Run Signal Request 接口,共包含 7 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RunSignalRequest } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RunSignalRequest {
    signalId: string;
    runId: string;
    key: string;
    principal: RuntimePrincipal;
    payload: unknown;
    idempotencyKey?: string;
    sentAt: string;
}

契约成员

成员种类签名说明
idempotencyKey属性idempotencyKey?: string公开属性;类型、只读和可选状态以签名列为准。
key属性key: string公开属性;类型、只读和可选状态以签名列为准。
payload属性payload: unknown公开属性;类型、只读和可选状态以签名列为准。
principal属性principal: RuntimePrincipal公开属性;类型、只读和可选状态以签名列为准。
runId属性runId: string公开属性;类型、只读和可选状态以签名列为准。
sentAt属性sentAt: string公开属性;类型、只读和可选状态以签名列为准。
signalId属性signalId: string公开属性;类型、只读和可选状态以签名列为准。

RuntimePrincipal

Runtime Principal 接口,共包含 8 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimePrincipal } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimePrincipal {
    principalId: string;
    type: RuntimePrincipalType;
    tenantId?: string;
    userId?: string;
    agentId?: string;
    roles?: string[];
    permissionScopes: string[];
    metadata?: Record<string, unknown>;
}

契约成员

成员种类签名说明
agentId属性agentId?: string公开属性;类型、只读和可选状态以签名列为准。
metadata属性metadata?: Record<string, unknown>公开属性;类型、只读和可选状态以签名列为准。
permissionScopes属性permissionScopes: string[]公开属性;类型、只读和可选状态以签名列为准。
principalId属性principalId: string公开属性;类型、只读和可选状态以签名列为准。
roles属性roles?: string[]公开属性;类型、只读和可选状态以签名列为准。
tenantId属性tenantId?: string公开属性;类型、只读和可选状态以签名列为准。
type属性type: "system" | "agent" | "user" | "service"公开属性;类型、只读和可选状态以签名列为准。
userId属性userId?: string公开属性;类型、只读和可选状态以签名列为准。

RuntimeRun

Runtime Run 接口,共包含 32 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimeRun } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimeRun {
    id: string;
    revision: number;
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    sessionId: string;
    domainPackRef?: SpecRef;
    workflowRef: SpecRef;
    workflowRevision: string;
    processSpecRef: string;
    processHash: string;
    rootAgentRef?: SpecRef;
    runtimeProfileRef?: SpecRef;
    status: RuntimeRunStatus;
    input: unknown;
    inputHash: string;
    output?: unknown;
    outputHash?: string;
    currentState?: string;
    terminalState?: string;
    correlationId: string;
    idempotencyKey?: string;
    deadlineAt?: string;
    cancelRequestedAt?: string;
    cancelReason?: string;
    createdAt: string;
    queuedAt?: string;
    startedAt?: string;
    updatedAt: string;
    completedAt?: string;
    error?: NormalizedRuntimeError;
    metadata?: Record<string, unknown>;
}

契约成员

成员种类签名说明
cancelReason属性cancelReason?: string公开属性;类型、只读和可选状态以签名列为准。
cancelRequestedAt属性cancelRequestedAt?: string公开属性;类型、只读和可选状态以签名列为准。
completedAt属性completedAt?: string公开属性;类型、只读和可选状态以签名列为准。
correlationId属性correlationId: string公开属性;类型、只读和可选状态以签名列为准。
createdAt属性createdAt: string公开属性;类型、只读和可选状态以签名列为准。
currentState属性currentState?: string公开属性;类型、只读和可选状态以签名列为准。
deadlineAt属性deadlineAt?: string公开属性;类型、只读和可选状态以签名列为准。
domainPackRef属性domainPackRef?: SpecRef公开属性;类型、只读和可选状态以签名列为准。
error属性error?: NormalizedRuntimeError公开属性;类型、只读和可选状态以签名列为准。
id属性id: string公开属性;类型、只读和可选状态以签名列为准。
idempotencyKey属性idempotencyKey?: string公开属性;类型、只读和可选状态以签名列为准。
input属性input: unknown公开属性;类型、只读和可选状态以签名列为准。
inputHash属性inputHash: string公开属性;类型、只读和可选状态以签名列为准。
metadata属性metadata?: Record<string, unknown>公开属性;类型、只读和可选状态以签名列为准。
output属性output?: unknown公开属性;类型、只读和可选状态以签名列为准。
outputHash属性outputHash?: string公开属性;类型、只读和可选状态以签名列为准。
processHash属性processHash: string公开属性;类型、只读和可选状态以签名列为准。
processSpecRef属性processSpecRef: string公开属性;类型、只读和可选状态以签名列为准。
queuedAt属性queuedAt?: string公开属性;类型、只读和可选状态以签名列为准。
revision属性revision: number公开属性;类型、只读和可选状态以签名列为准。
rootAgentRef属性rootAgentRef?: SpecRef公开属性;类型、只读和可选状态以签名列为准。
runtimeProfileRef属性runtimeProfileRef?: SpecRef公开属性;类型、只读和可选状态以签名列为准。
sessionId属性sessionId: string公开属性;类型、只读和可选状态以签名列为准。
startedAt属性startedAt?: string公开属性;类型、只读和可选状态以签名列为准。
status属性status: "completed" | "queued" | "starting" | "running" | "cancelling" | "cancelled" | "failed" | "timed_out" | "created" | "acquiring" | "waiting" | "waiting_human" | "waiting_signal" | "waiting_timer" | "pausing" | "paused" | "retry_scheduled" | "recovering"公开属性;类型、只读和可选状态以签名列为准。
tenantId属性tenantId?: string公开属性;类型、只读和可选状态以签名列为准。
terminalState属性terminalState?: string公开属性;类型、只读和可选状态以签名列为准。
updatedAt属性updatedAt: string公开属性;类型、只读和可选状态以签名列为准。
userId属性userId: string公开属性;类型、只读和可选状态以签名列为准。
workflowRef属性workflowRef: SpecRef公开属性;类型、只读和可选状态以签名列为准。
workflowRevision属性workflowRevision: string公开属性;类型、只读和可选状态以签名列为准。
workspaceId属性workspaceId?: string公开属性;类型、只读和可选状态以签名列为准。

RuntimeScope

Runtime Scope 接口,共包含 6 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimeScope } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimeScope {
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    sessionId: string;
    runId: string;
    agentId?: string;
}

契约成员

成员种类签名说明
agentId属性agentId?: string公开属性;类型、只读和可选状态以签名列为准。
runId属性runId: string公开属性;类型、只读和可选状态以签名列为准。
sessionId属性sessionId: string公开属性;类型、只读和可选状态以签名列为准。
tenantId属性tenantId?: string公开属性;类型、只读和可选状态以签名列为准。
userId属性userId: string公开属性;类型、只读和可选状态以签名列为准。
workspaceId属性workspaceId?: string公开属性;类型、只读和可选状态以签名列为准。

RuntimeSession

Runtime Session 接口,共包含 13 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimeSession } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimeSession {
    id: string;
    revision: number;
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    domainPackRef?: SpecRef;
    sessionProfileRef?: SpecRef;
    title?: string;
    metadata: Record<string, unknown>;
    status: RuntimeSessionStatus;
    createdAt: string;
    updatedAt: string;
    closedAt?: string;
}

契约成员

成员种类签名说明
closedAt属性closedAt?: string公开属性;类型、只读和可选状态以签名列为准。
createdAt属性createdAt: string公开属性;类型、只读和可选状态以签名列为准。
domainPackRef属性domainPackRef?: SpecRef公开属性;类型、只读和可选状态以签名列为准。
id属性id: string公开属性;类型、只读和可选状态以签名列为准。
metadata属性metadata: Record<string, unknown>公开属性;类型、只读和可选状态以签名列为准。
revision属性revision: number公开属性;类型、只读和可选状态以签名列为准。
sessionProfileRef属性sessionProfileRef?: SpecRef公开属性;类型、只读和可选状态以签名列为准。
status属性status: "archived" | "active" | "closed"公开属性;类型、只读和可选状态以签名列为准。
tenantId属性tenantId?: string公开属性;类型、只读和可选状态以签名列为准。
title属性title?: string公开属性;类型、只读和可选状态以签名列为准。
updatedAt属性updatedAt: string公开属性;类型、只读和可选状态以签名列为准。
userId属性userId: string公开属性;类型、只读和可选状态以签名列为准。
workspaceId属性workspaceId?: string公开属性;类型、只读和可选状态以签名列为准。

RuntimeWaitRecord

Runtime Wait Record 接口,共包含 11 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimeWaitRecord } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimeWaitRecord {
    id: string;
    runId: string;
    stateId: string;
    type: RuntimeWaitType;
    key?: string;
    status: RuntimeWaitStatus;
    expectedSchemaHash?: string;
    createdAt: string;
    expiresAt?: string;
    resolvedAt?: string;
    signalRef?: string;
}

契约成员

成员种类签名说明
createdAt属性createdAt: string公开属性;类型、只读和可选状态以签名列为准。
expectedSchemaHash属性expectedSchemaHash?: string公开属性;类型、只读和可选状态以签名列为准。
expiresAt属性expiresAt?: string公开属性;类型、只读和可选状态以签名列为准。
id属性id: string公开属性;类型、只读和可选状态以签名列为准。
key属性key?: string公开属性;类型、只读和可选状态以签名列为准。
resolvedAt属性resolvedAt?: string公开属性;类型、只读和可选状态以签名列为准。
runId属性runId: string公开属性;类型、只读和可选状态以签名列为准。
signalRef属性signalRef?: string公开属性;类型、只读和可选状态以签名列为准。
stateId属性stateId: string公开属性;类型、只读和可选状态以签名列为准。
status属性status: "cancelled" | "expired" | "waiting" | "received"公开属性;类型、只读和可选状态以签名列为准。
type属性type: "human" | "signal" | "timer" | "external_operation"公开属性;类型、只读和可选状态以签名列为准。

RuntimeWaitRequest

Runtime Wait Request 接口,共包含 7 个公开字段或方法。

  • 种类: 接口
  • 导入: import type { RuntimeWaitRequest } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export interface RuntimeWaitRequest {
    type: RuntimeWaitType;
    key?: string;
    expectedSchema?: JsonSchema;
    expiresAt?: string;
    timeoutTransitionId?: string;
    pendingActionRef?: string;
    metadata?: Record<string, unknown>;
}

契约成员

成员种类签名说明
expectedSchema属性expectedSchema?: JsonSchema公开属性;类型、只读和可选状态以签名列为准。
expiresAt属性expiresAt?: string公开属性;类型、只读和可选状态以签名列为准。
key属性key?: string公开属性;类型、只读和可选状态以签名列为准。
metadata属性metadata?: Record<string, unknown>公开属性;类型、只读和可选状态以签名列为准。
pendingActionRef属性pendingActionRef?: string公开属性;类型、只读和可选状态以签名列为准。
timeoutTransitionId属性timeoutTransitionId?: string公开属性;类型、只读和可选状态以签名列为准。
type属性type: "human" | "signal" | "timer" | "external_operation"公开属性;类型、只读和可选状态以签名列为准。

RuntimeErrorCode

Runtime Error Code 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimeErrorCode } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimeErrorCode = (typeof RUNTIME_ERROR_CODES)[number];

RuntimePrincipalType

Runtime Principal Type 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimePrincipalType } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimePrincipalType = (typeof RUNTIME_PRINCIPAL_TYPES)[number];

RuntimeRunStatus

Runtime Run Status 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimeRunStatus } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimeRunStatus = (typeof RUNTIME_RUN_STATUSES)[number];

RuntimeSessionStatus

Runtime Session Status 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimeSessionStatus } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimeSessionStatus = (typeof RUNTIME_SESSION_STATUSES)[number];

RuntimeWaitStatus

Runtime Wait Status 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimeWaitStatus } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimeWaitStatus = (typeof RUNTIME_WAIT_STATUSES)[number];

RuntimeWaitType

Runtime Wait Type 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { RuntimeWaitType } from '@codesoul-co/hypha-core';
  • 源码模块: contracts/runtime

声明

text
export type RuntimeWaitType = (typeof RUNTIME_WAIT_TYPES)[number];