perf(ci): use tsrs and reduce PE acceptance startup (#5795)

Use pinned tsrs on supported development hosts while retaining stable official
TypeScript on Windows and unsupported platforms. Partition compile/typecheck
caches by actual compiler and qualify fallback hosts for compiler inputs and
lifecycle hooks.

Reduce PE acceptance startup through the existing bounded compiled CLI. Retain
upstream named MCP definitions, every fixture/assertion and the original 30s
deadline. Verify that browser transport loss preserves the observed target.

Validation: full qualification and real host lanes in
https://github.com/morluto/rea/actions/runs/39590450889 ; 450 focused regressions
passed with two documented conditional skips. All 1724 production emit files
match SHA-256 and size across both compilers. Current-head Codex/Greptile review
found no actionable issues. Measurements and limitations are in the PR.

Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
This commit is contained in:
gensokyo-dev authored and GitHub committed 2026-10-21 19:47:52 +08:00
1 parent 33f912919d
commit 905cbaf239
22 files changed
+837 -46

No files matched your search

@@ -5,6 +5,7 @@ import {
createAnalysisExecution,
type AnalysisClient,
type AnalysisProviderCandidate,
type AnalysisProviderInspectionOptions,
type CapabilityDescriptor,
type ProviderAvailability,
type ProviderIdentity,
@@ -825,7 +826,9 @@ it("joins cancelled readiness finalization and shutdown before admitting another
const registry = new AnalysisProviderRegistry([
{
...base,
inspectAvailability: async ({ signal } = {}) => {
inspectAvailability: async ({
signal,
}: AnalysisProviderInspectionOptions = {}) => {
calls++;
if (calls === 1) {
observed = signal;
@@ -982,7 +985,9 @@ it("registers selection before async readiness can race shutdown", async () => {
const registry = new AnalysisProviderRegistry([
{
...base,
inspectAvailability: async ({ signal } = {}) => {
inspectAvailability: async ({
signal,
}: AnalysisProviderInspectionOptions = {}) => {
calls++;
observed = signal;
return base.inspectAvailability();