deepseek-ai/deepseek-harness · error · TypertAnalysisError
typert: batched analysis requires an explicit package select
Error message
typert: batched analysis requires an explicit package selection
What it means
Error "typert: batched analysis requires an explicit package selection" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/generator/src/analyzer.ts:360
return new WorkspaceAnalyzer({ ...this.options, caches: this.caches, mode: 'check' }).analyze()
}
return {
faces,
crossFaceLinks: [...this.crossFaceLinks.values()].sort(compareCrossFaceLinks),
}
}
/**
* Analyze an explicit package selection through bounded compiler programs.
* The resulting model is identical in shape to {@link analyze}; stable graph
* ids let repeated dependency declarations merge without flattening types.
* @param batchSize - maximum selected packages in one face program.
* @returns one merged workspace model.
*/
analyzeInBatches(batchSize = 8): WorkspaceModel {
if (this.options.packages === undefined) {
throw new TypertAnalysisError('typert: batched analysis requires an explicit package selection')
}
if (!Number.isInteger(batchSize) || batchSize < 1) {
throw new TypertAnalysisError(`typert: batch size must be a positive integer, received ${String(batchSize)}`)
}
const batches: WorkspaceModel[] = []
for (let index = 0; index < this.options.packages.length; index += batchSize) {
batches.push(new WorkspaceAnalyzer({
...this.options,
caches: this.caches,
packages: this.options.packages.slice(index, index + batchSize),
}).analyze())
}
return mergeWorkspaceModels(batches)
}
/**
* Discover package faces from public-export-reachable Cordis augmentations
* and explicit `@typert` roots without constructing a type-checker program.View on GitHub (pinned to b150a551b8)
Solutions
- Pass an explicit package selection for the batched analysis.
When it happens
Trigger: Thrown at packages/typert/generator/src/analyzer.ts:360 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/5f7bdcec9322ffc6.
Report an issue: GitHub.