Skip to content

@codesoul-co/hypha-core / contracts/execution-cache

模块用法

用于声明并运行时校验契约。Execution cache 模块公开 15 接口、6 类型。

从包入口导入

ts
import type {
  ExecutionCacheArtifactReference,
  ExecutionCacheArtifactVerifier,
  ExecutionCacheEntryProjection,
  ExecutionCacheEvent,
  ExecutionCacheLookupInput,
  ExecutionCacheRecord,
  ExecutionCacheResultMetadata,
  ExecutionCacheReuseAssessmentInput,
} from '@codesoul-co/hypha-core';

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

使用要点

  • 21 个类型/接口用于应用代码、Adapter 或测试中的静态契约;请使用 import type,运行时不应依赖它们。

公共导出

Symbol种类签名说明
ExecutionCacheArtifactReference接口interface ExecutionCacheArtifactReferenceExecution Cache Artifact Reference 接口,共包含 2 个公开字段或方法。
ExecutionCacheArtifactVerifier接口interface ExecutionCacheArtifactVerifierExecution Cache Artifact Verifier 接口,共包含 1 个公开字段或方法。
ExecutionCacheEntryProjection接口interface ExecutionCacheEntryProjectionExecution's projection for a generic CacheEntry value. It contains metadata, references, and hashes only; Artifact bytes and stdout/stderr are out of scope.
ExecutionCacheEvent接口interface ExecutionCacheEventExecution Cache Event 接口,共包含 5 个公开字段或方法。
ExecutionCacheLookupInput接口interface ExecutionCacheLookupInputExecution Cache Lookup Input 接口,共包含 5 个公开字段或方法。
ExecutionCacheRecord接口interface ExecutionCacheRecordVersioned envelope persisted by an Execution Result Cache store.
ExecutionCacheResultMetadata接口interface ExecutionCacheResultMetadataBounded result fields allowed in a Cache entry.
ExecutionCacheReuseAssessmentInput接口interface ExecutionCacheReuseAssessmentInputExecution Cache Reuse Assessment Input 接口,共包含 2 个公开字段或方法。
ExecutionCacheScope接口interface ExecutionCacheScopeMandatory ownership boundary for persisted Execution Cache records.
ExecutionCacheStore接口interface ExecutionCacheStoreExecution Cache Store 接口,共包含 5 个公开字段或方法。
ExecutionCacheValidityInput接口interface ExecutionCacheValidityInputExact Execution-owned validity input consumed by Cache integrations.
ExecutionCacheWriteInput接口interface ExecutionCacheWriteInput extends ExecutionCacheLookupInputExecution Cache Write Input 接口,共包含 7 个公开字段或方法。
ExecutionCommandFingerprintInput接口interface ExecutionCommandFingerprintInputCanonical, bounded material for a Command fingerprint. Raw environment values, Secret values, stdin, and command output are deliberately excluded.
ExecutionEnvironmentFingerprint接口interface ExecutionEnvironmentFingerprintResolved environment facts used to prove that a cache key is stable.
ExecutionFingerprintHasher接口interface ExecutionFingerprintHasherPlatform-neutral SHA-256 port; adapters hash the canonical UTF-8 string.
ExecutionCacheFailureMode类型type ExecutionCacheFailureMode = 'bypass' | 'strict'Execution Cache Failure Mode 公共类型别名;完整类型表达式见声明。
ExecutionCacheLookupResult类型type ExecutionCacheLookupResult = { hit: true; key: string; projection: ExecutionCacheEntryProjection; ageMs: number; } | { hit: false; reason: ExecutionCacheMissReason; key?: string; }Execution Cache Lookup Result 公共类型别名;完整类型表达式见声明。
ExecutionCacheMissReason类型type ExecutionCacheMissReason = 'not_found' | 'expired' | 'scope_mismatch' | 'key_mismatch' | 'validity_changed' | 'artifact_verification_unavailable' | 'artifact_verification_failed' | 'environment_fingerprint_unavailable' | 'workspace_write' | 'external_side_effect' | 'irreversible_side_effect' | 'not_cacheable_status' | 'store_unavailable' | 'entry_oversized' | 'corrupt'Execution Cache Miss Reason 公共类型别名;完整类型表达式见声明。
ExecutionCacheReuseAssessment类型type ExecutionCacheReuseAssessment = { reusable: true; } | { reusable: false; reason: ExecutionCacheReuseBlockReason; }Execution Cache Reuse Assessment 公共类型别名;完整类型表达式见声明。
ExecutionCacheReuseBlockReason类型type ExecutionCacheReuseBlockReason = 'environment_fingerprint_unavailable' | 'workspace_write' | 'external_side_effect' | 'irreversible_side_effect'Execution Cache Reuse Block Reason 公共类型别名;完整类型表达式见声明。
ExecutionEnvironmentFingerprintResolution类型type ExecutionEnvironmentFingerprintResolution = { status: 'resolved'; fingerprint: ExecutionEnvironmentFingerprint; } | { status: 'unavailable'; reason: string; }Execution Environment Fingerprint Resolution 公共类型别名;完整类型表达式见声明。

ExecutionCacheArtifactReference

Execution Cache Artifact Reference 接口,共包含 2 个公开字段或方法。

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

声明

text
export interface ExecutionCacheArtifactReference {
    artifactRef: string;
    contentHash: string;
}

契约成员

成员种类签名说明
artifactRef属性artifactRef: string公开属性;类型、只读和可选状态以签名列为准。
contentHash属性contentHash: string公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheArtifactVerifier

Execution Cache Artifact Verifier 接口,共包含 1 个公开字段或方法。

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

声明

text
export interface ExecutionCacheArtifactVerifier {
    verify(scope: ExecutionCacheScope, artifacts: ExecutionCacheArtifactReference[]): Promise<boolean>;
}

契约成员

成员种类签名说明
verify方法verify(scope: ExecutionCacheScope, artifacts: ExecutionCacheArtifactReference[]): Promise<boolean>公开方法;参数与返回类型以签名列为准。

ExecutionCacheEntryProjection

Execution's projection for a generic CacheEntry value. It contains metadata, references, and hashes only; Artifact bytes and stdout/stderr are out of scope.

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

声明

text
export interface ExecutionCacheEntryProjection {
    commandHash: string;
    validityHash: string;
    validity: ExecutionCacheValidityInput;
    resultMetadata: ExecutionCacheResultMetadata;
    artifacts: ExecutionCacheArtifactReference[];
}

契约成员

成员种类签名说明
artifacts属性artifacts: ExecutionCacheArtifactReference[]公开属性;类型、只读和可选状态以签名列为准。
commandHash属性commandHash: string公开属性;类型、只读和可选状态以签名列为准。
resultMetadata属性resultMetadata: ExecutionCacheResultMetadata公开属性;类型、只读和可选状态以签名列为准。
validity属性validity: ExecutionCacheValidityInput公开属性;类型、只读和可选状态以签名列为准。
validityHash属性validityHash: string公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheEvent

Execution Cache Event 接口,共包含 5 个公开字段或方法。

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

声明

text
export interface ExecutionCacheEvent {
    type: 'execution.cache.lookup' | 'execution.cache.hit' | 'execution.cache.miss' | 'execution.cache.write' | 'execution.cache.invalidate' | 'execution.cache.bypass';
    key?: string;
    scope: ExecutionCacheScope;
    reason?: ExecutionCacheMissReason;
    ageMs?: number;
}

契约成员

成员种类签名说明
ageMs属性ageMs?: number公开属性;类型、只读和可选状态以签名列为准。
key属性key?: string公开属性;类型、只读和可选状态以签名列为准。
reason属性reason?: ExecutionCacheMissReason公开属性;类型、只读和可选状态以签名列为准。
scope属性scope: ExecutionCacheScope公开属性;类型、只读和可选状态以签名列为准。
type属性type: "execution.cache.lookup" | "execution.cache.hit" | "execution.cache.miss" | "execution.cache.write" | "execution.cache.invalidate" | "execution.cache.bypass"公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheLookupInput

Execution Cache Lookup Input 接口,共包含 5 个公开字段或方法。

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

声明

text
export interface ExecutionCacheLookupInput {
    scope: ExecutionCacheScope;
    command: ExecutionCommandFingerprintInput;
    validity: ExecutionCacheValidityInput;
    sideEffectLevel: SideEffectLevel;
    environmentFingerprintStatus: ExecutionEnvironmentFingerprintResolution['status'];
}

契约成员

成员种类签名说明
command属性command: ExecutionCommandFingerprintInput公开属性;类型、只读和可选状态以签名列为准。
environmentFingerprintStatus属性environmentFingerprintStatus: "resolved" | "unavailable"公开属性;类型、只读和可选状态以签名列为准。
scope属性scope: ExecutionCacheScope公开属性;类型、只读和可选状态以签名列为准。
sideEffectLevel属性sideEffectLevel: SideEffectLevel公开属性;类型、只读和可选状态以签名列为准。
validity属性validity: ExecutionCacheValidityInput公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheRecord

Versioned envelope persisted by an Execution Result Cache store.

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

声明

text
export interface ExecutionCacheRecord {
    schemaVersion: '1.0';
    keyVersion: '1';
    key: string;
    scope: ExecutionCacheScope;
    projection: ExecutionCacheEntryProjection;
    createdAt: number;
    expiresAt?: number;
    sizeBytes?: number;
}

契约成员

成员种类签名说明
createdAt属性createdAt: number公开属性;类型、只读和可选状态以签名列为准。
expiresAt属性expiresAt?: number公开属性;类型、只读和可选状态以签名列为准。
key属性key: string公开属性;类型、只读和可选状态以签名列为准。
keyVersion属性keyVersion: "1"公开属性;类型、只读和可选状态以签名列为准。
projection属性projection: ExecutionCacheEntryProjection公开属性;类型、只读和可选状态以签名列为准。
schemaVersion属性schemaVersion: "1.0"公开属性;类型、只读和可选状态以签名列为准。
scope属性scope: ExecutionCacheScope公开属性;类型、只读和可选状态以签名列为准。
sizeBytes属性sizeBytes?: number公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheResultMetadata

Bounded result fields allowed in a Cache entry.

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

声明

text
export interface ExecutionCacheResultMetadata {
    executionId: string;
    status: CommandExecutionStatus;
    exitCode: number | null;
    signal?: string;
    resourceUsage?: ExecutionResourceUsage;
    providerReceiptHash?: string;
    startedAt: string;
    completedAt?: string;
    latencyMs?: number;
}

契约成员

成员种类签名说明
completedAt属性completedAt?: string公开属性;类型、只读和可选状态以签名列为准。
executionId属性executionId: string公开属性;类型、只读和可选状态以签名列为准。
exitCode属性exitCode: number公开属性;类型、只读和可选状态以签名列为准。
latencyMs属性latencyMs?: number公开属性;类型、只读和可选状态以签名列为准。
providerReceiptHash属性providerReceiptHash?: string公开属性;类型、只读和可选状态以签名列为准。
resourceUsage属性resourceUsage?: ExecutionResourceUsage公开属性;类型、只读和可选状态以签名列为准。
signal属性signal?: string公开属性;类型、只读和可选状态以签名列为准。
startedAt属性startedAt: string公开属性;类型、只读和可选状态以签名列为准。
status属性status: CommandExecutionStatus公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheReuseAssessmentInput

Execution Cache Reuse Assessment Input 接口,共包含 2 个公开字段或方法。

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

声明

text
export interface ExecutionCacheReuseAssessmentInput {
    sideEffectLevel: SideEffectLevel;
    environmentFingerprintStatus: ExecutionEnvironmentFingerprintResolution['status'];
}

契约成员

成员种类签名说明
environmentFingerprintStatus属性environmentFingerprintStatus: "resolved" | "unavailable"公开属性;类型、只读和可选状态以签名列为准。
sideEffectLevel属性sideEffectLevel: SideEffectLevel公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheScope

Mandatory ownership boundary for persisted Execution Cache records.

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

声明

text
export interface ExecutionCacheScope {
    tenantId?: string;
    userId: string;
    workspaceId: string;
}

契约成员

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

ExecutionCacheStore

Execution Cache Store 接口,共包含 5 个公开字段或方法。

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

声明

text
export interface ExecutionCacheStore {
    get(key: string): Promise<ExecutionCacheRecord | null>;
    set(key: string, record: ExecutionCacheRecord): Promise<void>;
    delete(key: string): Promise<void>;
    clear?(): Promise<void>;
    close?(): Promise<void>;
}

契约成员

成员种类签名说明
clear方法clear?(): Promise<void>公开方法;参数与返回类型以签名列为准。
close方法close?(): Promise<void>公开方法;参数与返回类型以签名列为准。
delete方法delete(key: string): Promise<void>公开方法;参数与返回类型以签名列为准。
get方法get(key: string): Promise<ExecutionCacheRecord | null>公开方法;参数与返回类型以签名列为准。
set方法set(key: string, record: ExecutionCacheRecord): Promise<void>公开方法;参数与返回类型以签名列为准。

ExecutionCacheValidityInput

Exact Execution-owned validity input consumed by Cache integrations.

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

声明

text
export interface ExecutionCacheValidityInput {
    executable: string;
    argsHash: string;
    sourceTreeHash: string;
    workspaceSnapshotHash?: string;
    environmentHash: string;
    imageDigest?: string;
    dependencyLockHash?: string;
    networkPolicyHash: string;
    secretVersionSetHash?: string;
    commandPolicyRevision?: string;
}

契约成员

成员种类签名说明
argsHash属性argsHash: string公开属性;类型、只读和可选状态以签名列为准。
commandPolicyRevision属性commandPolicyRevision?: string公开属性;类型、只读和可选状态以签名列为准。
dependencyLockHash属性dependencyLockHash?: string公开属性;类型、只读和可选状态以签名列为准。
environmentHash属性environmentHash: string公开属性;类型、只读和可选状态以签名列为准。
executable属性executable: string公开属性;类型、只读和可选状态以签名列为准。
imageDigest属性imageDigest?: string公开属性;类型、只读和可选状态以签名列为准。
networkPolicyHash属性networkPolicyHash: string公开属性;类型、只读和可选状态以签名列为准。
secretVersionSetHash属性secretVersionSetHash?: string公开属性;类型、只读和可选状态以签名列为准。
sourceTreeHash属性sourceTreeHash: string公开属性;类型、只读和可选状态以签名列为准。
workspaceSnapshotHash属性workspaceSnapshotHash?: string公开属性;类型、只读和可选状态以签名列为准。

ExecutionCacheWriteInput

Execution Cache Write Input 接口,共包含 7 个公开字段或方法。

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

声明

text
export interface ExecutionCacheWriteInput extends ExecutionCacheLookupInput {
    projection: ExecutionCacheEntryProjection;
    ttlMs?: number;
}

契约成员

成员种类签名说明
command属性command: ExecutionCommandFingerprintInput公开属性;类型、只读和可选状态以签名列为准。
environmentFingerprintStatus属性environmentFingerprintStatus: "resolved" | "unavailable"公开属性;类型、只读和可选状态以签名列为准。
projection属性projection: ExecutionCacheEntryProjection公开属性;类型、只读和可选状态以签名列为准。
scope属性scope: ExecutionCacheScope公开属性;类型、只读和可选状态以签名列为准。
sideEffectLevel属性sideEffectLevel: SideEffectLevel公开属性;类型、只读和可选状态以签名列为准。
ttlMs属性ttlMs?: number公开属性;类型、只读和可选状态以签名列为准。
validity属性validity: ExecutionCacheValidityInput公开属性;类型、只读和可选状态以签名列为准。

ExecutionCommandFingerprintInput

Canonical, bounded material for a Command fingerprint. Raw environment values, Secret values, stdin, and command output are deliberately excluded.

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

声明

text
export interface ExecutionCommandFingerprintInput {
    executable: string;
    argsHash: string;
    cwd?: string;
    relevantEnvHash: string;
    sourceTreeHash: string;
    environmentHash: string;
    networkPolicyHash: string;
    secretVersionSetHash?: string;
    idempotencyKey: string;
}

契约成员

成员种类签名说明
argsHash属性argsHash: string公开属性;类型、只读和可选状态以签名列为准。
cwd属性cwd?: string公开属性;类型、只读和可选状态以签名列为准。
environmentHash属性environmentHash: string公开属性;类型、只读和可选状态以签名列为准。
executable属性executable: string公开属性;类型、只读和可选状态以签名列为准。
idempotencyKey属性idempotencyKey: string公开属性;类型、只读和可选状态以签名列为准。
networkPolicyHash属性networkPolicyHash: string公开属性;类型、只读和可选状态以签名列为准。
relevantEnvHash属性relevantEnvHash: string公开属性;类型、只读和可选状态以签名列为准。
secretVersionSetHash属性secretVersionSetHash?: string公开属性;类型、只读和可选状态以签名列为准。
sourceTreeHash属性sourceTreeHash: string公开属性;类型、只读和可选状态以签名列为准。

ExecutionEnvironmentFingerprint

Resolved environment facts used to prove that a cache key is stable.

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

声明

text
export interface ExecutionEnvironmentFingerprint {
    environmentRef: SpecRef;
    environmentRevision: string;
    providerId: string;
    imageDigest?: string;
    platform?: string;
    executableVersions?: Record<string, string>;
    dependencyLockHash?: string;
    resourcePolicyHash: string;
    networkPolicyHash: string;
    mountPolicyHash: string;
    secretVersionSetHash?: string;
    fingerprintHash: string;
}

契约成员

成员种类签名说明
dependencyLockHash属性dependencyLockHash?: string公开属性;类型、只读和可选状态以签名列为准。
environmentRef属性environmentRef: SpecRef公开属性;类型、只读和可选状态以签名列为准。
environmentRevision属性environmentRevision: string公开属性;类型、只读和可选状态以签名列为准。
executableVersions属性executableVersions?: Record<string, string>公开属性;类型、只读和可选状态以签名列为准。
fingerprintHash属性fingerprintHash: string公开属性;类型、只读和可选状态以签名列为准。
imageDigest属性imageDigest?: string公开属性;类型、只读和可选状态以签名列为准。
mountPolicyHash属性mountPolicyHash: string公开属性;类型、只读和可选状态以签名列为准。
networkPolicyHash属性networkPolicyHash: string公开属性;类型、只读和可选状态以签名列为准。
platform属性platform?: string公开属性;类型、只读和可选状态以签名列为准。
providerId属性providerId: string公开属性;类型、只读和可选状态以签名列为准。
resourcePolicyHash属性resourcePolicyHash: string公开属性;类型、只读和可选状态以签名列为准。
secretVersionSetHash属性secretVersionSetHash?: string公开属性;类型、只读和可选状态以签名列为准。

ExecutionFingerprintHasher

Platform-neutral SHA-256 port; adapters hash the canonical UTF-8 string.

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

声明

text
export interface ExecutionFingerprintHasher {
    readonly algorithm: 'sha256';
    hashUtf8(canonicalValue: string): Promise<string>;
}

契约成员

成员种类签名说明
algorithm属性readonly algorithm: "sha256"公开属性;类型、只读和可选状态以签名列为准。
hashUtf8方法hashUtf8(canonicalValue: string): Promise<string>公开方法;参数与返回类型以签名列为准。

ExecutionCacheFailureMode

Execution Cache Failure Mode 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionCacheFailureMode = 'bypass' | 'strict';

ExecutionCacheLookupResult

Execution Cache Lookup Result 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionCacheLookupResult = {
    hit: true;
    key: string;
    projection: ExecutionCacheEntryProjection;
    ageMs: number;
} | {
    hit: false;
    reason: ExecutionCacheMissReason;
    key?: string;
};

ExecutionCacheMissReason

Execution Cache Miss Reason 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionCacheMissReason = 'not_found' | 'expired' | 'scope_mismatch' | 'key_mismatch' | 'validity_changed' | 'artifact_verification_unavailable' | 'artifact_verification_failed' | 'environment_fingerprint_unavailable' | 'workspace_write' | 'external_side_effect' | 'irreversible_side_effect' | 'not_cacheable_status' | 'store_unavailable' | 'entry_oversized' | 'corrupt';

ExecutionCacheReuseAssessment

Execution Cache Reuse Assessment 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionCacheReuseAssessment = {
    reusable: true;
} | {
    reusable: false;
    reason: ExecutionCacheReuseBlockReason;
};

ExecutionCacheReuseBlockReason

Execution Cache Reuse Block Reason 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionCacheReuseBlockReason = 'environment_fingerprint_unavailable' | 'workspace_write' | 'external_side_effect' | 'irreversible_side_effect';

ExecutionEnvironmentFingerprintResolution

Execution Environment Fingerprint Resolution 公共类型别名;完整类型表达式见声明。

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

声明

text
export type ExecutionEnvironmentFingerprintResolution = {
    status: 'resolved';
    fingerprint: ExecutionEnvironmentFingerprint;
} | {
    status: 'unavailable';
    reason: string;
};