Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/// @ts-check/**
* Merge per-group perf results into a single unified CI summary.
*
* Called by the CI report job after all matrix groups have finished.
* Reads results.json and baseline-*.json from each group directory,
* merges all scenarios into one combined report, and writes a single
* ci-summary.md file.
*
* Usage:
* node scripts/chat-simulation/merge-ci-summary.js \
* --results-dir perf-results \
* --output ci-summary.md \
* [--leak-summary leak-results/.chat-simulation-data/ci-summary-leak.md] \
* [--threshold 0.2]
*/const fs =require('fs');const path =require('path');const{ welchTTest, loadConfig }=require('./common/utils');// -- CLI args ----------------------------------------------------------------functionparseArgs(){const args = process.argv.slice
opts
i i args i
argsi
opts argsi
opts argsi
opts argsi
opts argsi
process
opts opts
process
opts
groupDirs fsresultsDir
d d
pathresultsDir d
fsd
groupDirs
simDataDir pathresultsDir
fssimDataDir fssimDataDir
groupDirs resultsDir
mergedScenarios
mergedBaselineScenarios
runsPerScenario
platform
buildMode
baselineBuildVersion
threshold
perfConfig
metricThresholds perfConfig
groupDir groupDirs
simDataDir pathgroupDir
fssimDataDir
subdirs fssimDataDir
full pathsimDataDir d
fsfull d
subdir subdirs
resultsPath pathsimDataDir subdir
fsresultsPath
results fsresultsPath
runsPerScenario results runsPerScenario
platform results platform
buildMode results buildMode
scenario data results
mergedScenariosscenario data
baselineFiles fspathsimDataDir subdir
f f
bf baselineFiles
baseline fspathsimDataDir subdir bf
baselineBuildVersion baseline baselineBuildVersion
scenario data baseline
mergedBaselineScenariosscenario data
topBaselines fssimDataDir
f f
bf topBaselines
baseline fspathsimDataDir bf
baselineBuildVersion baseline baselineBuildVersion
scenario data baseline
mergedBaselineScenariosscenario data
ciSummaryPath pathsimDataDir
fsciSummaryPath
content fsciSummaryPath
thresholdMatch content
thresholdMatch
threshold thresholdMatch
mergedReport
platform
runsPerScenario
buildMode
mergedScenarios
mergedBaseline mergedBaselineScenarios
baselineBuildVersion mergedBaselineScenarios
mergedReport mergedBaseline baselineBuildVersion threshold threshold metricThresholds
label
label
isRef v v v
base test
threshold absoluteDelta threshold
change threshold
raw optsmetric
raw
num raw raw raw
raw num num
opts
v
baseLabel opts
testBuildMode jsonReport
testLabel testBuildMode
testBuildMode
opts testBuildMode
baseLink baseLabel
testLink testLabel
compareLink baseLabel testLabel
allMetrics
regressionMetricNames
lines
scenarios jsonReport
scenarioVerdicts
totalRegressions
totalImprovements
scenario scenarios
current jsonReportscenario
base baselinescenariosscenario
verdicts
base
metric group unit allMetrics
cur currentgroupmetric
bas basegroupmetric
cur bas bas bas
change bas cur bas bas
isRegressionMetric regressionMetricNamesmetric
curRaw current r rmetric v v
basRaw base r rmetric v v
ttest basRaw curRaw
pStr ttest
metricThreshold opts metric
absoluteDelta cur bas
verdict
isRegressionMetric
metricThreshold change absoluteDelta
ttest ttest
verdict
totalRegressions
verdict
metricThreshold change absoluteDelta ttestsignificant
verdict
totalImprovements
verdict
verdict
basStr
curStr
verdicts metric verdict change pStr basStr curStr
scenarioVerdictsscenario verdicts
hasRegressions totalRegressions
hasLeakFailure opts
hasFailed hasRegressions hasLeakFailure
verdictIcon hasFailed
verdictParts
hasRegressions totalImprovements
verdictParts
hasRegressions
verdictParts
totalImprovements
verdictParts
verdictParts
hasLeakFailure
verdictParts
verdictText verdictParts
lines
lines
lines
lines
lines
lines
compareLink
lines
lines
overrides opts
parsed v v v
parsed parsed opts
overrides
overrideStr overrides
v
lines
lines
lines
lines
lines
lines
lines
lines
lines
scenario scenarios
verdicts scenarioVerdictsscenario
get m verdicts v m
ttft
complete
layouts
styles
loaf
fmtCell v
v
keyVerdicts ttft complete layouts styles loaf
hasRegression keyVerdicts vverdict
hasImproved keyVerdicts vverdict
rowVerdict hasRegression hasImproved
lines
lines
notableRows
scenario scenarios
verdicts scenarioVerdictsscenario
v verdicts
v v
notableRows scenario v
notableRows
lines
lines
lines
lines
r notableRows
pct
icon r
lines
lines
lines
lines
scenario scenarios
verdicts scenarioVerdictsscenario
base baselinescenariosscenario
lines
lines
base
current jsonReportscenario
lines
lines
lines
lines
metric group unit allMetrics
cur currentgroupmetric
cur
lines
lines
lines
lines
v verdicts
pct
verdictDisplay v
v verdictDisplay
v verdictDisplay
v verdictDisplay
v verdictDisplay
v verdictDisplay
lines
lines
lines
lines
lines
lines
scenario scenarios
current jsonReportscenario
lines
lines
lines
lines
runs current
i i runs i
r runsi
lines
lines
baseline
scenario scenarios
base baselinescenario
base
lines
lines
lines
lines
runs base
i i runs i
r runsi
lines
lines
lines
lines
lines
opts
merged opts
merged
fallback
fsopts fallback
process
report baseline baselineBuildVersion merged
scenarioCount report
baseline
leakSummaryContent
hasLeakFailure
opts fsopts
leakSummaryContent fsopts
hasLeakFailure leakSummaryContent
summary report baseline
merged opts
merged
report
baselineBuildVersion
process
hasLeakFailure
fullSummary summary
leakSummaryContent
fullSummary leakSummaryContent
fsopts fullSummary
/**
* Find all results.json and baseline-*.json files across group directories,
* merge scenarios into a single combined report.
* @param{string}resultsDir
*/
function
mergeResults
(
resultsDir
)
{
let
=
.
readdirSync
(
)
.
filter
(
d
=>
.
startsWith
(
'perf-results-'
)
||
.
startsWith
(
'perf-summary-'
)
)
.
map
(
d
=>
.
join
(
,
)
)
.
filter
(
d
=>
.
statSync
(
)
.
isDirectory
(
)
)
;
// Fallback: when download-artifact extracts a single artifact directly into
// resultsDir (no artifact-named subdirectory), treat resultsDir itself as the
// sole group directory if it contains a .chat-simulation-data folder.
if
(
.
length
===
0
)
{
const
=
.
join
(
,
'.chat-simulation-data'
)
;
if
(
.
existsSync
(
)
&&
.
statSync
(
)
.
isDirectory
(
)
)
{
console
.
log
(
`No named subdirectories found; using ${resultsDir} directly as single group`
)
;
=
[
]
;
}
else
{
console
.
error
(
`No perf-results-* or perf-summary-* directories found in ${resultsDir}`
)
;
return
null
;
}
}
/** @type{Record<string, any>} */
const
=
{
}
;
/** @type{Record<string, any>} */
const
=
{
}
;
let
=
0
;
let
=
'linux'
;
/** @type{string |undefined} */
let
;
/** @type{string |undefined} */
let
;
/** @type{string |undefined} */
let
;
// Read per-metric thresholds from config.jsonc (same source as the perf script)
const
=
loadConfig
(
'perfRegression'
)
;
/** @type{Record<string, number | string>} */
const
=
.
metricThresholds
??
{
}
;
for
(
const
of
)
{
// Find results.json (may be in a timestamped subdir under .chat-simulation-data)
const
=
.
join
(
,
'.chat-simulation-data'
)
;
if
(
!
.
existsSync
(
)
)
{
continue
;
}
// Search for results.json in timestamped subdirs
const
=
.
readdirSync
(
)
.
filter
(
d
=>
{
const
=
.
join
(
,
)
;
return
.
statSync
(
)
.
isDirectory
(
)
&&
/^\d{4}-/
.
test
(
)
;
}
)
;
for
(
const
of
)
{
const
=
.
join
(
,
,
'results.json'
)
;
if
(
.
existsSync
(
)
)
{
const
=
JSON
.
parse
(
.
readFileSync
(
,
'utf-8'
)
)
;
=
.
runsPerScenario
||
;
=
.
platform
||
;
=
.
buildMode
||
;
for
(
const
[
,
]
of
Object
.
entries
(
.
scenarios
||
{
}
)
)
{
[
]
=
;
}
}
// Find baseline-*.json in the same dir
const
=
.
readdirSync
(
.
join
(
,
)
)
.
filter
(
f
=>
.
startsWith
(
'baseline-'
)
&&
.
endsWith
(
'.json'
)
)
;
for
(
const
of
)
{
const
=
JSON
.
parse
(
.
readFileSync
(
.
join
(
,
,
)
,
'utf-8'
)
)
;
=
.
baselineBuildVersion
||
;
for
(
const
[
,
]
of
Object
.
entries
(
.
scenarios
||
{
}
)
)
{
[
]
=
;
}
}
}
// Also check for baseline cached at top-level .chat-simulation-data
const
=
.
readdirSync
(
)
.
filter
(
f
=>
.
startsWith
(
'baseline-'
)
&&
.
endsWith
(
'.json'
)
)
;
for
(
const
of
)
{
const
=
JSON
.
parse
(
.
readFileSync
(
.
join
(
,
)
,
'utf-8'
)
)
;
=
.
baselineBuildVersion
||
;
for
(
const
[
,
]
of
Object
.
entries
(
.
scenarios
||
{
}
)
)
{
[
]
=
;
}
}
// Read threshold/metricThresholds from the group's ci-summary or config