Structs§
- Contract
- 完整契约。
- Platforms
- Platforms(载体维度):定义能力的空间。
- Scope
- Scopes(上下文维度):定义规则的边界。
- Sources
- Sources(事实源维度):定义真相的本质。
- Stage
Build - Stage
Release - Stage
Test - Stages
- Stages(时序维度):定义价值流的节拍。
- Version
Source - Version
Status - 版本一致性状态。
Enums§
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 是否一致。