/** * [ref] A9 装配缝的一片小叶子 —— 提交路径共用的两个纯函数(run 行元数据 + cascade 配置)。 * * 为什么单独成文件:`runMeta` 被 tasks 与 runs **两个**域模块调用,`cascadeConfig` 同理(还被测试直接引)。 * 挂在任一域模块上都会造出 routes/* 互相值 import 的第二条边;它们又是纯函数(只依赖入参 + redact 叶子), * 所以正确归处是叶子。server.ts 转出口 `cascadeConfig` 以保住既有 import 点。 */ import type { TaskSpec, CascadeConfig } from "@sema-agent/core"; /** The denormalized run-row metadata captured at submit: correlation (jobId), credential-derived source, * and a redacted objective glance for lists. One place so the three submit paths can't drift. */ export declare function runMeta(prepared: { jobId?: string; spec: TaskSpec; }, source: string | null): { jobId: string | null; source: string | null; objectivePreview: string | null; }; /** Build the cascade config from the operator ladder. Default gate = `status==="completed"` (escalate * on a cheap-rung failure); cost-ceiling from the task's budget bounds the cold-rerun tax. */ export declare function cascadeConfig(ladder: readonly string[], maxCostUsd?: number): CascadeConfig; //# sourceMappingURL=run-meta.d.ts.map