Skip to content

@codesoul-co/hypha-core / modules/execution-cache/index

模块用法

用于执行该边界的运行时行为。Index 模块公开 23 常量、9 函数。

从包入口导入

ts
import {
  executionCacheArtifactReferenceJsonSchema,
  executionCacheArtifactReferenceSchema,
  executionCacheEntryProjectionExample,
  executionCacheEntryProjectionJsonSchema,
  executionCacheEntryProjectionSchema,
  executionCacheJsonSchemas,
  executionCacheRecordJsonSchema,
  executionCacheRecordSchema,
} from '@codesoul-co/hypha-core';

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

使用要点

  • 9 个函数是该模块的直接操作入口;每个 overload 的必需/可选参数与返回类型均在下方列出。
  • 23 个常量/枚举提供稳定值、Schema、Definition 或默认配置;应复用这些导出,避免在应用中复制内部值。

运行时校验示例

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

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

配置、网络请求或持久化数据等不可信输入应先通过 Runtime Schema,再传给只接受已校验契约的函数或类。

公共导出

Symbol种类签名说明
executionCacheArtifactReferenceJsonSchema常量const executionCacheArtifactReferenceJsonSchema: JsonSchemaExecution Cache Artifact Reference 的 JSON Schema。
executionCacheArtifactReferenceSchema常量const executionCacheArtifactReferenceSchema: z.ZodObject<{ artifactRef: z.ZodString; contentHash: z.ZodString; }, "strict", z.ZodTypeAny, { contentHash: string; artifactRef: string; }, { contentHash: string; artifactRef: string; }>Execution Cache Artifact Reference 的运行时 Schema。
executionCacheEntryProjectionExample常量const executionCacheEntryProjectionExample: ExecutionCacheEntryProjectionExecution Cache Entry Projection 的有效示例值。
executionCacheEntryProjectionJsonSchema常量const executionCacheEntryProjectionJsonSchema: JsonSchemaExecution Cache Entry Projection 的 JSON Schema。
executionCacheEntryProjectionSchema常量const executionCacheEntryProjectionSchema: z.ZodEffects<z.ZodObject<{ commandHash: z.ZodString; validityHash: z.ZodString; validity: z.ZodObject<{ executable: z.ZodString; argsHash: z.ZodString; sourceTreeHash: z.ZodString; workspaceSnapshotHash: z.ZodOptional<z.ZodString>; environmentHash: z.ZodString; imageDigest: z.ZodOptional<z.ZodString>; dependencyLockHash: z.ZodOptional<z.ZodString>; networkPolicyHash: z.Zo...Execution Cache Entry Projection 的运行时 Schema。
executionCacheJsonSchemas常量const executionCacheJsonSchemas: Record<string, JsonSchema>modules/execution-cache/index 模块导出的 Execution Cache JSON Schemas 常量。
executionCacheRecordJsonSchema常量const executionCacheRecordJsonSchema: JsonSchemaExecution Cache Record 的 JSON Schema。
executionCacheRecordSchema常量const executionCacheRecordSchema: z.ZodEffects<z.ZodObject<{ schemaVersion: z.ZodLiteral<"1.0">; keyVersion: z.ZodLiteral<"1">; key: z.ZodString; scope: z.ZodObject<{ tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodString; }, "strict", z.ZodTypeAny, { workspaceId: string; userId: string; tenantId?: string | undefined; }, { workspaceId: string; userId: string; tenantId?: string | undefi...Execution Cache Record 的运行时 Schema。
executionCacheResultMetadataJsonSchema常量const executionCacheResultMetadataJsonSchema: JsonSchemaExecution Cache Result Metadata 的 JSON Schema。
executionCacheResultMetadataSchema常量const executionCacheResultMetadataSchema: z.ZodEffects<z.ZodObject<{ executionId: z.ZodString; status: z.ZodEnum<["queued", "starting", "running", "cancelling", "cancelled", "completed", "failed", "timed_out", "oom_killed", "resource_exceeded", "quarantined"]>; exitCode: z.ZodNullable<z.ZodNumber>; signal: z.ZodOptional<z.ZodString>; resourceUsage: z.ZodOptional<z.ZodObject<{ cpuTimeMs: z.ZodOptional<z.ZodNumber>;...Execution Cache Result Metadata 的运行时 Schema。
executionCacheScopeJsonSchema常量const executionCacheScopeJsonSchema: JsonSchemaExecution Cache Scope 的 JSON Schema。
executionCacheScopeSchema常量const executionCacheScopeSchema: z.ZodObject<{ tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodString; }, "strict", z.ZodTypeAny, { workspaceId: string; userId: string; tenantId?: string | undefined; }, { workspaceId: string; userId: string; tenantId?: string | undefined; }>Execution Cache Scope 的运行时 Schema。
executionCacheValidityInputExample常量const executionCacheValidityInputExample: ExecutionCacheValidityInputExecution Cache Validity Input 的有效示例值。
executionCacheValidityInputJsonSchema常量const executionCacheValidityInputJsonSchema: JsonSchemaExecution Cache Validity Input 的 JSON Schema。
executionCacheValidityInputSchema常量const executionCacheValidityInputSchema: z.ZodObject<{ executable: z.ZodString; argsHash: z.ZodString; sourceTreeHash: z.ZodString; workspaceSnapshotHash: z.ZodOptional<z.ZodString>; environmentHash: z.ZodString; imageDigest: z.ZodOptional<z.ZodString>; dependencyLockHash: z.ZodOptional<z.ZodString>; networkPolicyHash: z.ZodString; secretVersionSetHash: z.ZodOptional<z.ZodString>; commandPolicyRevision: z.ZodOptio...Execution Cache Validity Input 的运行时 Schema。
executionCommandFingerprintInputExample常量const executionCommandFingerprintInputExample: ExecutionCommandFingerprintInputExecution Command Fingerprint Input 的有效示例值。
executionCommandFingerprintInputJsonSchema常量const executionCommandFingerprintInputJsonSchema: JsonSchemaExecution Command Fingerprint Input 的 JSON Schema。
executionCommandFingerprintInputSchema常量const executionCommandFingerprintInputSchema: z.ZodObject<{ executable: z.ZodString; argsHash: z.ZodString; cwd: z.ZodOptional<z.ZodString>; relevantEnvHash: z.ZodString; sourceTreeHash: z.ZodString; environmentHash: z.ZodString; networkPolicyHash: z.ZodString; secretVersionSetHash: z.ZodOptional<z.ZodString>; idempotencyKey: z.ZodString; }, "strict", z.ZodTypeAny, { idempotencyKey: string; sourceTreeHash: string;...Execution Command Fingerprint Input 的运行时 Schema。
executionEnvironmentFingerprintExample常量const executionEnvironmentFingerprintExample: ExecutionEnvironmentFingerprintExecution Environment Fingerprint 的有效示例值。
executionEnvironmentFingerprintJsonSchema常量const executionEnvironmentFingerprintJsonSchema: JsonSchemaExecution Environment Fingerprint 的 JSON Schema。
executionEnvironmentFingerprintResolutionJsonSchema常量const executionEnvironmentFingerprintResolutionJsonSchema: JsonSchemaExecution Environment Fingerprint Resolution 的 JSON Schema。
executionEnvironmentFingerprintResolutionSchema常量const executionEnvironmentFingerprintResolutionSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"resolved">; fingerprint: z.ZodEffects<z.ZodObject<{ environmentRef: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; version?: string | undefined; revision?: string | undefined; }, { id: string;...Execution Environment Fingerprint Resolution 的运行时 Schema。
executionEnvironmentFingerprintSchema常量const executionEnvironmentFingerprintSchema: z.ZodEffects<z.ZodObject<{ environmentRef: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; version?: string | undefined; revision?: string | undefined; }, { id: string; version?: string | undefined; revision?: string | undefined; }>; environmentRevision: z.ZodString; provid...Execution Environment Fingerprint 的运行时 Schema。
assessExecutionCacheReuse函数assessExecutionCacheReuse(input: ExecutionCacheReuseAssessmentInput): ExecutionCacheReuseAssessmentAssess Execution Cache Reuse 函数,提供 1 个公开调用签名;参数与返回类型见下表。
canonicalizeExecutionFingerprintInput函数canonicalizeExecutionFingerprintInput(input: ExecutionCommandFingerprintInput | ExecutionCacheValidityInput): stringCanonicalize Execution Fingerprint Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionCacheEntryProjection函数validateExecutionCacheEntryProjection(input: unknown): ExecutionCacheEntryProjectionValidate Execution Cache Entry Projection 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionCacheRecord函数validateExecutionCacheRecord(input: unknown, maxEntryBytes?: number): ExecutionCacheRecordValidate Execution Cache Record 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionCacheScope函数validateExecutionCacheScope(input: unknown): ExecutionCacheScopeValidate Execution Cache Scope 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionCacheValidityInput函数validateExecutionCacheValidityInput(input: unknown): ExecutionCacheValidityInputValidate Execution Cache Validity Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionCommandFingerprintInput函数validateExecutionCommandFingerprintInput(input: unknown): ExecutionCommandFingerprintInputValidate Execution Command Fingerprint Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionEnvironmentFingerprint函数validateExecutionEnvironmentFingerprint(input: unknown): ExecutionEnvironmentFingerprintValidate Execution Environment Fingerprint 函数,提供 1 个公开调用签名;参数与返回类型见下表。
validateExecutionEnvironmentFingerprintResolution函数validateExecutionEnvironmentFingerprintResolution(input: unknown): ExecutionEnvironmentFingerprintResolutionValidate Execution Environment Fingerprint Resolution 函数,提供 1 个公开调用签名;参数与返回类型见下表。

executionCacheArtifactReferenceJsonSchema

Execution Cache Artifact Reference 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionCacheArtifactReferenceJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCacheArtifactReferenceJsonSchema: JsonSchema;

executionCacheArtifactReferenceSchema

Execution Cache Artifact Reference 的运行时 Schema。

  • 种类: 常量
  • 导入: import { executionCacheArtifactReferenceSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCacheArtifactReferenceSchema: z.ZodObject<{ artifactRef: z.ZodString; contentHash: z.ZodString; }, "strict", z.ZodTypeAny, { contentHash: string; artifactRef: string; }, { contentHash: string; artifactRef: string; }>;

executionCacheEntryProjectionExample

Execution Cache Entry Projection 的有效示例值。

声明

text
export declare const executionCacheEntryProjectionExample: ExecutionCacheEntryProjection;

executionCacheEntryProjectionJsonSchema

Execution Cache Entry Projection 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionCacheEntryProjectionJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCacheEntryProjectionJsonSchema: JsonSchema;

executionCacheEntryProjectionSchema

Execution Cache Entry Projection 的运行时 Schema。

声明

text
// 精确类型由包入口解析;完整编译器展开定义见源码链接。
export declare const executionCacheEntryProjectionSchema: (typeof import('@codesoul-co/hypha-core'))['executionCacheEntryProjectionSchema'];

该常量的编译器展开类型已压缩;它的公共名称、顶层类型与源码位置仍保留在本条目中。相关输入/输出字段请使用同模块导出的接口、类型或 Runtime Schema。

executionCacheJsonSchemas

modules/execution-cache/index 模块导出的 Execution Cache JSON Schemas 常量。

声明

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

executionCacheRecordJsonSchema

Execution Cache Record 的 JSON Schema。

声明

text
export declare const executionCacheRecordJsonSchema: JsonSchema;

executionCacheRecordSchema

Execution Cache Record 的运行时 Schema。

声明

text
// 精确类型由包入口解析;完整编译器展开定义见源码链接。
export declare const executionCacheRecordSchema: (typeof import('@codesoul-co/hypha-core'))['executionCacheRecordSchema'];

该常量的编译器展开类型已压缩;它的公共名称、顶层类型与源码位置仍保留在本条目中。相关输入/输出字段请使用同模块导出的接口、类型或 Runtime Schema。

executionCacheResultMetadataJsonSchema

Execution Cache Result Metadata 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionCacheResultMetadataJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCacheResultMetadataJsonSchema: JsonSchema;

executionCacheResultMetadataSchema

Execution Cache Result Metadata 的运行时 Schema。

声明

text
// 精确类型由包入口解析;完整编译器展开定义见源码链接。
export declare const executionCacheResultMetadataSchema: (typeof import('@codesoul-co/hypha-core'))['executionCacheResultMetadataSchema'];

该常量的编译器展开类型已压缩;它的公共名称、顶层类型与源码位置仍保留在本条目中。相关输入/输出字段请使用同模块导出的接口、类型或 Runtime Schema。

executionCacheScopeJsonSchema

Execution Cache Scope 的 JSON Schema。

声明

text
export declare const executionCacheScopeJsonSchema: JsonSchema;

executionCacheScopeSchema

Execution Cache Scope 的运行时 Schema。

声明

text
export declare const executionCacheScopeSchema: z.ZodObject<{ tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodString; }, "strict", z.ZodTypeAny, { workspaceId: string; userId: string; tenantId?: string | undefined; }, { workspaceId: string; userId: string; tenantId?: string | undefined; }>;

executionCacheValidityInputExample

Execution Cache Validity Input 的有效示例值。

声明

text
export declare const executionCacheValidityInputExample: ExecutionCacheValidityInput;

executionCacheValidityInputJsonSchema

Execution Cache Validity Input 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionCacheValidityInputJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCacheValidityInputJsonSchema: JsonSchema;

executionCacheValidityInputSchema

Execution Cache Validity Input 的运行时 Schema。

声明

text
export declare const executionCacheValidityInputSchema: z.ZodObject<{ executable: z.ZodString; argsHash: z.ZodString; sourceTreeHash: z.ZodString; workspaceSnapshotHash: z.ZodOptional<z.ZodString>; environmentHash: z.ZodString; imageDigest: z.ZodOptional<z.ZodString>; dependencyLockHash: z.ZodOptional<z.ZodString>; networkPolicyHash: z.ZodString; secretVersionSetHash: z.ZodOptional<z.ZodString>; commandPolicyRevision: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { sourceTreeHash: string; networkPolicyHash: string; executable: string; argsHash: string; environmentHash: string; workspaceSnapshotHash?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; commandPolicyRevision?: string | undefined; }, { sourceTreeHash: string; networkPolicyHash: string; executable: string; argsHash: string; environmentHash: string; workspaceSnapshotHash?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; commandPolicyRevision?: string | undefined; }>;

executionCommandFingerprintInputExample

Execution Command Fingerprint Input 的有效示例值。

  • 种类: 常量
  • 导入: import { executionCommandFingerprintInputExample } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCommandFingerprintInputExample: ExecutionCommandFingerprintInput;

executionCommandFingerprintInputJsonSchema

Execution Command Fingerprint Input 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionCommandFingerprintInputJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCommandFingerprintInputJsonSchema: JsonSchema;

executionCommandFingerprintInputSchema

Execution Command Fingerprint Input 的运行时 Schema。

  • 种类: 常量
  • 导入: import { executionCommandFingerprintInputSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionCommandFingerprintInputSchema: z.ZodObject<{ executable: z.ZodString; argsHash: z.ZodString; cwd: z.ZodOptional<z.ZodString>; relevantEnvHash: z.ZodString; sourceTreeHash: z.ZodString; environmentHash: z.ZodString; networkPolicyHash: z.ZodString; secretVersionSetHash: z.ZodOptional<z.ZodString>; idempotencyKey: z.ZodString; }, "strict", z.ZodTypeAny, { idempotencyKey: string; sourceTreeHash: string; networkPolicyHash: string; executable: string; argsHash: string; environmentHash: string; relevantEnvHash: string; cwd?: string | undefined; secretVersionSetHash?: string | undefined; }, { idempotencyKey: string; sourceTreeHash: string; networkPolicyHash: string; executable: string; argsHash: string; environmentHash: string; relevantEnvHash: string; cwd?: string | undefined; secretVersionSetHash?: string | undefined; }>;

executionEnvironmentFingerprintExample

Execution Environment Fingerprint 的有效示例值。

  • 种类: 常量
  • 导入: import { executionEnvironmentFingerprintExample } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionEnvironmentFingerprintExample: ExecutionEnvironmentFingerprint;

executionEnvironmentFingerprintJsonSchema

Execution Environment Fingerprint 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionEnvironmentFingerprintJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionEnvironmentFingerprintJsonSchema: JsonSchema;

executionEnvironmentFingerprintResolutionJsonSchema

Execution Environment Fingerprint Resolution 的 JSON Schema。

  • 种类: 常量
  • 导入: import { executionEnvironmentFingerprintResolutionJsonSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionEnvironmentFingerprintResolutionJsonSchema: JsonSchema;

executionEnvironmentFingerprintResolutionSchema

Execution Environment Fingerprint Resolution 的运行时 Schema。

  • 种类: 常量
  • 导入: import { executionEnvironmentFingerprintResolutionSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
// 精确类型由包入口解析;完整编译器展开定义见源码链接。
export declare const executionEnvironmentFingerprintResolutionSchema: (typeof import('@codesoul-co/hypha-core'))['executionEnvironmentFingerprintResolutionSchema'];

该常量的编译器展开类型已压缩;它的公共名称、顶层类型与源码位置仍保留在本条目中。相关输入/输出字段请使用同模块导出的接口、类型或 Runtime Schema。

executionEnvironmentFingerprintSchema

Execution Environment Fingerprint 的运行时 Schema。

  • 种类: 常量
  • 导入: import { executionEnvironmentFingerprintSchema } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare const executionEnvironmentFingerprintSchema: z.ZodEffects<z.ZodObject<{ environmentRef: z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; version?: string | undefined; revision?: string | undefined; }, { id: string; version?: string | undefined; revision?: string | undefined; }>; environmentRevision: z.ZodString; providerId: z.ZodString; imageDigest: z.ZodOptional<z.ZodString>; platform: z.ZodOptional<z.ZodString>; executableVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; dependencyLockHash: z.ZodOptional<z.ZodString>; resourcePolicyHash: z.ZodString; networkPolicyHash: z.ZodString; mountPolicyHash: z.ZodString; secretVersionSetHash: z.ZodOptional<z.ZodString>; fingerprintHash: z.ZodString; }, "strict", z.ZodTypeAny, { environmentRevision: string; providerId: string; networkPolicyHash: string; environmentRef: { id: string; version?: string | undefined; revision?: string | undefined; }; mountPolicyHash: string; resourcePolicyHash: string; fingerprintHash: string; platform?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; executableVersions?: Record<string, string> | undefined; }, { environmentRevision: string; providerId: string; networkPolicyHash: string; environmentRef: { id: string; version?: string | undefined; revision?: string | undefined; }; mountPolicyHash: string; resourcePolicyHash: string; fingerprintHash: string; platform?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; executableVersions?: Record<string, string> | undefined; }>, { environmentRevision: string; providerId: string; networkPolicyHash: string; environmentRef: { id: string; version?: string | undefined; revision?: string | undefined; }; mountPolicyHash: string; resourcePolicyHash: string; fingerprintHash: string; platform?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; executableVersions?: Record<string, string> | undefined; }, { environmentRevision: string; providerId: string; networkPolicyHash: string; environmentRef: { id: string; version?: string | undefined; revision?: string | undefined; }; mountPolicyHash: string; resourcePolicyHash: string; fingerprintHash: string; platform?: string | undefined; imageDigest?: string | undefined; dependencyLockHash?: string | undefined; secretVersionSetHash?: string | undefined; executableVersions?: Record<string, string> | undefined; }>;

assessExecutionCacheReuse

Assess Execution Cache Reuse 函数,提供 1 个公开调用签名;参数与返回类型见下表。

声明

text
export declare function assessExecutionCacheReuse(input: ExecutionCacheReuseAssessmentInput): ExecutionCacheReuseAssessment;

调用签名

text
assessExecutionCacheReuse(input: ExecutionCacheReuseAssessmentInput): ExecutionCacheReuseAssessment

参数

参数类型必需说明
inputExecutionCacheReuseAssessmentInput必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCacheReuseAssessment
  • 说明: 返回值契约由上述类型定义。

canonicalizeExecutionFingerprintInput

Canonicalize Execution Fingerprint Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。

  • 种类: 函数
  • 导入: import { canonicalizeExecutionFingerprintInput } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare function canonicalizeExecutionFingerprintInput(input: ExecutionCommandFingerprintInput | ExecutionCacheValidityInput): string;

调用签名

text
canonicalizeExecutionFingerprintInput(input: ExecutionCommandFingerprintInput | ExecutionCacheValidityInput): string

参数

参数类型必需说明
inputExecutionCacheValidityInput | ExecutionCommandFingerprintInput必需参数;接受的值由类型列定义。

返回值

  • 类型: string
  • 说明: 返回值契约由上述类型定义。

validateExecutionCacheEntryProjection

Validate Execution Cache Entry Projection 函数,提供 1 个公开调用签名;参数与返回类型见下表。

  • 种类: 函数
  • 导入: import { validateExecutionCacheEntryProjection } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare function validateExecutionCacheEntryProjection(input: unknown): ExecutionCacheEntryProjection;

调用签名

text
validateExecutionCacheEntryProjection(input: unknown): ExecutionCacheEntryProjection

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCacheEntryProjection
  • 说明: 返回值契约由上述类型定义。

validateExecutionCacheRecord

Validate Execution Cache Record 函数,提供 1 个公开调用签名;参数与返回类型见下表。

声明

text
export declare function validateExecutionCacheRecord(input: unknown, maxEntryBytes?: number): ExecutionCacheRecord;

调用签名

text
validateExecutionCacheRecord(input: unknown, maxEntryBytes?: number): ExecutionCacheRecord

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。
maxEntryBytesnumber可选参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCacheRecord
  • 说明: 返回值契约由上述类型定义。

validateExecutionCacheScope

Validate Execution Cache Scope 函数,提供 1 个公开调用签名;参数与返回类型见下表。

声明

text
export declare function validateExecutionCacheScope(input: unknown): ExecutionCacheScope;

调用签名

text
validateExecutionCacheScope(input: unknown): ExecutionCacheScope

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCacheScope
  • 说明: 返回值契约由上述类型定义。

validateExecutionCacheValidityInput

Validate Execution Cache Validity Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。

声明

text
export declare function validateExecutionCacheValidityInput(input: unknown): ExecutionCacheValidityInput;

调用签名

text
validateExecutionCacheValidityInput(input: unknown): ExecutionCacheValidityInput

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCacheValidityInput
  • 说明: 返回值契约由上述类型定义。

validateExecutionCommandFingerprintInput

Validate Execution Command Fingerprint Input 函数,提供 1 个公开调用签名;参数与返回类型见下表。

  • 种类: 函数
  • 导入: import { validateExecutionCommandFingerprintInput } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare function validateExecutionCommandFingerprintInput(input: unknown): ExecutionCommandFingerprintInput;

调用签名

text
validateExecutionCommandFingerprintInput(input: unknown): ExecutionCommandFingerprintInput

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionCommandFingerprintInput
  • 说明: 返回值契约由上述类型定义。

validateExecutionEnvironmentFingerprint

Validate Execution Environment Fingerprint 函数,提供 1 个公开调用签名;参数与返回类型见下表。

  • 种类: 函数
  • 导入: import { validateExecutionEnvironmentFingerprint } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare function validateExecutionEnvironmentFingerprint(input: unknown): ExecutionEnvironmentFingerprint;

调用签名

text
validateExecutionEnvironmentFingerprint(input: unknown): ExecutionEnvironmentFingerprint

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionEnvironmentFingerprint
  • 说明: 返回值契约由上述类型定义。

validateExecutionEnvironmentFingerprintResolution

Validate Execution Environment Fingerprint Resolution 函数,提供 1 个公开调用签名;参数与返回类型见下表。

  • 种类: 函数
  • 导入: import { validateExecutionEnvironmentFingerprintResolution } from '@codesoul-co/hypha-core';
  • 源码模块: modules/execution-cache/index

声明

text
export declare function validateExecutionEnvironmentFingerprintResolution(input: unknown): ExecutionEnvironmentFingerprintResolution;

调用签名

text
validateExecutionEnvironmentFingerprintResolution(input: unknown): ExecutionEnvironmentFingerprintResolution

参数

参数类型必需说明
inputunknown必需参数;接受的值由类型列定义。

返回值

  • 类型: ExecutionEnvironmentFingerprintResolution
  • 说明: 返回值契约由上述类型定义。