refactor(delegate-task): remove AI slop from supporting files
Tighten resolve-metadata-model runtime guards, tidy tool-argument-preparation subagent-type override logging, and trim a redundant literal in the metadata-model-unification test. Behavior preserved (328 tests pass).
This commit is contained in:
@@ -18,11 +18,16 @@ function isModelLike(value: unknown): value is ModelLike {
|
||||
}
|
||||
|
||||
function toMetadataModel(model: ModelLike): MetadataModel {
|
||||
return {
|
||||
const metadataModel: MetadataModel = {
|
||||
providerID: model.providerID,
|
||||
modelID: model.modelID,
|
||||
...("variant" in model && model.variant ? { variant: model.variant } : {}),
|
||||
}
|
||||
|
||||
if ("variant" in model && model.variant) {
|
||||
metadataModel.variant = model.variant
|
||||
}
|
||||
|
||||
return metadataModel
|
||||
}
|
||||
|
||||
export function resolveMetadataModel(
|
||||
|
||||
Reference in New Issue
Block a user