Skip to main content

Module contract

Module contract 

Source

Structs§

Contract
完整契约。
Platforms
Platforms(载体维度):定义能力的空间。
Scope
Scopes(上下文维度):定义规则的边界。
Sources
Sources(事实源维度):定义真相的本质。
StageBuild
StageRelease
StageTest
Stages
Stages(时序维度):定义价值流的节拍。
VersionSource
VersionStatus
版本一致性状态。

Enums§

BuildTool
Language
Registry
SourceType

Functions§

detect_by_files
detect_language
快速检测语言(简化版,兼容旧调用方)。
find_scope_by_path
根据当前工作目录查找匹配的 scope。
load
.quanttide/devops/contract.yaml 加载完整契约。
load_scopes
快速加载 scope 列表(简化版,兼容旧调用方)。
read_all_config_versions
读取 scope 目录下所有已知配置文件的版本号。
resolve_language
scope_release
获取 scope 的发布配置(scope 级覆盖 → 全局默认)。
scope_test_threshold
获取 scope 的测试阈值。
version_status
检查 scope 下所有已知配置文件的版本,判断与 tag 是否一致。