@aisdlc/core 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +625 -457
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +624 -458
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13825,6 +13825,554 @@ function verifyPrivacy(options = {}) {
|
|
|
13825
13825
|
writePrivacyOutputsIfNeeded(result, options, policy, rootDir);
|
|
13826
13826
|
return result;
|
|
13827
13827
|
}
|
|
13828
|
+
var TRAILER_REGEXES = {
|
|
13829
|
+
taskId: /^\s*Task-ID:\s*(.+)$/im,
|
|
13830
|
+
parentRef: /^\s*Parent-Ref:\s*(.+)$/im,
|
|
13831
|
+
authorType: /^\s*Author-Type:\s*(human|agent)/im,
|
|
13832
|
+
aiModel: /^\s*AI-Model:\s*(.+)$/im,
|
|
13833
|
+
promptTokens: /^\s*Prompt-Tokens:\s*([0-9]+)/im,
|
|
13834
|
+
completionTokens: /^\s*Completion-Tokens:\s*([0-9]+)/im,
|
|
13835
|
+
activeTimeSeconds: /^\s*Active-Time-Seconds:\s*([0-9]+)/im
|
|
13836
|
+
};
|
|
13837
|
+
function parseTrailerInt(match) {
|
|
13838
|
+
if (!match) return 0;
|
|
13839
|
+
const val = parseInt(match[1], 10);
|
|
13840
|
+
return isNaN(val) ? 0 : val;
|
|
13841
|
+
}
|
|
13842
|
+
function resolveAuthorType(authorTypeMatch, aiModelMatch) {
|
|
13843
|
+
if (authorTypeMatch) {
|
|
13844
|
+
return authorTypeMatch[1].toLowerCase();
|
|
13845
|
+
}
|
|
13846
|
+
if (aiModelMatch && aiModelMatch[1].trim() !== "n/a") {
|
|
13847
|
+
return "agent";
|
|
13848
|
+
}
|
|
13849
|
+
return "human";
|
|
13850
|
+
}
|
|
13851
|
+
function resolveTrailerOrScope(match, text, fallbackRegex) {
|
|
13852
|
+
if (match) return match[1].trim();
|
|
13853
|
+
const subMatch = text.match(fallbackRegex);
|
|
13854
|
+
return subMatch ? subMatch[1].toUpperCase() : void 0;
|
|
13855
|
+
}
|
|
13856
|
+
function parseCommitTrailers(rawMessage) {
|
|
13857
|
+
const text = rawMessage || "";
|
|
13858
|
+
const authorTypeMatch = text.match(TRAILER_REGEXES.authorType);
|
|
13859
|
+
const aiModelMatch = text.match(TRAILER_REGEXES.aiModel);
|
|
13860
|
+
const authorType = resolveAuthorType(authorTypeMatch, aiModelMatch);
|
|
13861
|
+
const rawModel = aiModelMatch ? aiModelMatch[1].trim() : void 0;
|
|
13862
|
+
const aiModel = rawModel && rawModel !== "n/a" ? rawModel : void 0;
|
|
13863
|
+
return {
|
|
13864
|
+
taskId: resolveTrailerOrScope(text.match(TRAILER_REGEXES.taskId), text, /\b(TSK-[0-9A-Za-z_-]+)\b/i),
|
|
13865
|
+
parentRef: resolveTrailerOrScope(text.match(TRAILER_REGEXES.parentRef), text, /\b((?:CHG|FEAT|BUG|FIX|PATCH)-[0-9A-Za-z_-]+)\b/i),
|
|
13866
|
+
authorType,
|
|
13867
|
+
aiModel,
|
|
13868
|
+
promptTokens: parseTrailerInt(text.match(TRAILER_REGEXES.promptTokens)),
|
|
13869
|
+
completionTokens: parseTrailerInt(text.match(TRAILER_REGEXES.completionTokens)),
|
|
13870
|
+
activeTimeSeconds: parseTrailerInt(text.match(TRAILER_REGEXES.activeTimeSeconds))
|
|
13871
|
+
};
|
|
13872
|
+
}
|
|
13873
|
+
function formatCommitTrailers(trailers) {
|
|
13874
|
+
const lines = [];
|
|
13875
|
+
if (trailers.taskId) lines.push(`Task-ID: ${trailers.taskId}`);
|
|
13876
|
+
if (trailers.parentRef) lines.push(`Parent-Ref: ${trailers.parentRef}`);
|
|
13877
|
+
lines.push(`Author-Type: ${trailers.authorType || "human"}`);
|
|
13878
|
+
lines.push(`AI-Model: ${trailers.aiModel || "n/a"}`);
|
|
13879
|
+
lines.push(`Prompt-Tokens: ${trailers.promptTokens ?? 0}`);
|
|
13880
|
+
lines.push(`Completion-Tokens: ${trailers.completionTokens ?? 0}`);
|
|
13881
|
+
lines.push(`Active-Time-Seconds: ${trailers.activeTimeSeconds ?? 0}`);
|
|
13882
|
+
return lines.join("\n");
|
|
13883
|
+
}
|
|
13884
|
+
function parseRawLogChunks(rawLog) {
|
|
13885
|
+
const rawCommits = rawLog.split("---AI_SDLC_COMMIT---").filter((c) => c.trim().length > 0);
|
|
13886
|
+
const chunks = [];
|
|
13887
|
+
for (const raw of rawCommits) {
|
|
13888
|
+
const endBodyIdx = raw.indexOf("---AI_SDLC_BODY_END---");
|
|
13889
|
+
if (endBodyIdx === -1) continue;
|
|
13890
|
+
const beforeEnd = raw.slice(0, endBodyIdx).trimStart();
|
|
13891
|
+
const afterEnd = raw.slice(endBodyIdx + "---AI_SDLC_BODY_END---".length);
|
|
13892
|
+
const firstNewline = beforeEnd.indexOf("\n");
|
|
13893
|
+
const header = firstNewline === -1 ? beforeEnd : beforeEnd.slice(0, firstNewline);
|
|
13894
|
+
const body = firstNewline === -1 ? "" : beforeEnd.slice(firstNewline + 1);
|
|
13895
|
+
const numstatLines = afterEnd.split("\n").filter((l) => /^\d+\s+\d+\s+/.test(l.trim()));
|
|
13896
|
+
chunks.push({ header, body, numstatLines });
|
|
13897
|
+
}
|
|
13898
|
+
return chunks;
|
|
13899
|
+
}
|
|
13900
|
+
function sumNumstatLines(lines) {
|
|
13901
|
+
let added = 0;
|
|
13902
|
+
let deleted = 0;
|
|
13903
|
+
const files = [];
|
|
13904
|
+
for (const line of lines) {
|
|
13905
|
+
const parts = line.trim().split(/\s+/);
|
|
13906
|
+
if (parts.length >= 2) {
|
|
13907
|
+
const a = parseInt(parts[0], 10);
|
|
13908
|
+
const d = parseInt(parts[1], 10);
|
|
13909
|
+
if (!isNaN(a)) added += a;
|
|
13910
|
+
if (!isNaN(d)) deleted += d;
|
|
13911
|
+
if (parts.length >= 3) files.push(parts.slice(2).join(" "));
|
|
13912
|
+
}
|
|
13913
|
+
}
|
|
13914
|
+
return { added, deleted, files };
|
|
13915
|
+
}
|
|
13916
|
+
function evaluateIsBugFix(subject, parentRef) {
|
|
13917
|
+
if (parentRef && /^(BUG|FIX)-/i.test(parentRef)) return true;
|
|
13918
|
+
return /^(fix|bug)(\([^)]+\))?:/i.test(subject.trim());
|
|
13919
|
+
}
|
|
13920
|
+
function inferAgentTrailers(trailers, linesAdded, linesDeleted) {
|
|
13921
|
+
const res = { ...trailers };
|
|
13922
|
+
const linesChanged = linesAdded + linesDeleted;
|
|
13923
|
+
let estimated = false;
|
|
13924
|
+
if (res.promptTokens === 0 && res.completionTokens === 0) {
|
|
13925
|
+
res.completionTokens = linesChanged > 0 ? Math.max(linesAdded * 10, 50) : 0;
|
|
13926
|
+
res.promptTokens = linesChanged > 0 ? Math.max(2500 + linesChanged * 25, 3e3) : 1e3;
|
|
13927
|
+
estimated = true;
|
|
13928
|
+
}
|
|
13929
|
+
if (res.activeTimeSeconds === 0) {
|
|
13930
|
+
res.activeTimeSeconds = linesChanged > 0 ? Math.round(30 + linesChanged * 0.5) : 30;
|
|
13931
|
+
estimated = true;
|
|
13932
|
+
}
|
|
13933
|
+
res.isTelemetryEstimated = estimated;
|
|
13934
|
+
return res;
|
|
13935
|
+
}
|
|
13936
|
+
function inferHumanTrailers(trailers, linesAdded, linesDeleted) {
|
|
13937
|
+
const res = { ...trailers };
|
|
13938
|
+
const linesChanged = linesAdded + linesDeleted;
|
|
13939
|
+
let estimated = false;
|
|
13940
|
+
if (res.activeTimeSeconds === 0) {
|
|
13941
|
+
res.activeTimeSeconds = linesChanged > 0 ? Math.round(180 + linesChanged * 2) : 120;
|
|
13942
|
+
estimated = true;
|
|
13943
|
+
}
|
|
13944
|
+
res.isTelemetryEstimated = estimated;
|
|
13945
|
+
return res;
|
|
13946
|
+
}
|
|
13947
|
+
function inferMissingTrailers(trailers, linesAdded, linesDeleted) {
|
|
13948
|
+
return trailers.authorType === "agent" ? inferAgentTrailers(trailers, linesAdded, linesDeleted) : inferHumanTrailers(trailers, linesAdded, linesDeleted);
|
|
13949
|
+
}
|
|
13950
|
+
function resolveGitRef(cwd, ref) {
|
|
13951
|
+
if (!ref || ref === "HEAD") return ref;
|
|
13952
|
+
const candidates = [
|
|
13953
|
+
ref,
|
|
13954
|
+
`feat/${ref}`,
|
|
13955
|
+
`release/${ref}`,
|
|
13956
|
+
`bug/${ref}`,
|
|
13957
|
+
`task/${ref}`,
|
|
13958
|
+
`origin/${ref}`,
|
|
13959
|
+
`origin/feat/${ref}`,
|
|
13960
|
+
`origin/release/${ref}`,
|
|
13961
|
+
`origin/bug/${ref}`
|
|
13962
|
+
];
|
|
13963
|
+
for (const cand of candidates) {
|
|
13964
|
+
try {
|
|
13965
|
+
execFileSync("git", ["rev-parse", "--verify", "--quiet", cand], {
|
|
13966
|
+
cwd,
|
|
13967
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
13968
|
+
});
|
|
13969
|
+
return cand;
|
|
13970
|
+
} catch {
|
|
13971
|
+
}
|
|
13972
|
+
}
|
|
13973
|
+
return ref;
|
|
13974
|
+
}
|
|
13975
|
+
function fetchGitLogOutput(cwd, baseRef, headRef, format) {
|
|
13976
|
+
const rangeArg = baseRef ? `${baseRef}..${headRef}` : headRef;
|
|
13977
|
+
try {
|
|
13978
|
+
return execFileSync("git", ["log", rangeArg, `--format=${format}`, "--numstat"], {
|
|
13979
|
+
cwd,
|
|
13980
|
+
encoding: "utf-8",
|
|
13981
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
13982
|
+
});
|
|
13983
|
+
} catch {
|
|
13984
|
+
if (baseRef && !baseRef.includes("/")) {
|
|
13985
|
+
try {
|
|
13986
|
+
return execFileSync("git", ["log", `origin/${baseRef}..${headRef}`, `--format=${format}`, `--numstat`], {
|
|
13987
|
+
cwd,
|
|
13988
|
+
encoding: "utf-8",
|
|
13989
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
13990
|
+
});
|
|
13991
|
+
} catch {
|
|
13992
|
+
return "";
|
|
13993
|
+
}
|
|
13994
|
+
}
|
|
13995
|
+
return "";
|
|
13996
|
+
}
|
|
13997
|
+
}
|
|
13998
|
+
function buildCommitKpiRecord(chunk) {
|
|
13999
|
+
const fields = chunk.header.split("");
|
|
14000
|
+
if (fields.length < 5) return null;
|
|
14001
|
+
const rawTrailers = parseCommitTrailers(chunk.body);
|
|
14002
|
+
const { added, deleted, files } = sumNumstatLines(chunk.numstatLines);
|
|
14003
|
+
const trailers = inferMissingTrailers(rawTrailers, added, deleted);
|
|
14004
|
+
return {
|
|
14005
|
+
sha: fields[0],
|
|
14006
|
+
authorName: fields[1],
|
|
14007
|
+
authorEmail: fields[2],
|
|
14008
|
+
date: fields[3],
|
|
14009
|
+
subject: fields[4],
|
|
14010
|
+
trailers,
|
|
14011
|
+
linesAdded: added,
|
|
14012
|
+
linesDeleted: deleted,
|
|
14013
|
+
isBugFix: evaluateIsBugFix(fields[4], trailers.parentRef),
|
|
14014
|
+
touchedFiles: files
|
|
14015
|
+
};
|
|
14016
|
+
}
|
|
14017
|
+
function extractCommitKpisFromRange(baseRef, headRef = "HEAD", options = {}) {
|
|
14018
|
+
const cwd = options.cwd || process.cwd();
|
|
14019
|
+
const resolvedBase = resolveGitRef(cwd, baseRef);
|
|
14020
|
+
const resolvedHead = resolveGitRef(cwd, headRef);
|
|
14021
|
+
const format = "---AI_SDLC_COMMIT---%n%H%x1f%an%x1f%ae%x1f%aI%x1f%s%n%B%n---AI_SDLC_BODY_END---";
|
|
14022
|
+
const rawOutput = fetchGitLogOutput(cwd, resolvedBase, resolvedHead, format);
|
|
14023
|
+
if (!rawOutput) return [];
|
|
14024
|
+
const chunks = parseRawLogChunks(rawOutput);
|
|
14025
|
+
const records = [];
|
|
14026
|
+
for (const chunk of chunks) {
|
|
14027
|
+
const rec = buildCommitKpiRecord(chunk);
|
|
14028
|
+
if (rec) records.push(rec);
|
|
14029
|
+
}
|
|
14030
|
+
return records;
|
|
14031
|
+
}
|
|
14032
|
+
function extractAllRepoCommitKpis(options = {}) {
|
|
14033
|
+
const cwd = options.cwd || process.cwd();
|
|
14034
|
+
const format = "---AI_SDLC_COMMIT---%n%H%x1f%an%x1f%ae%x1f%aI%x1f%s%n%B%n---AI_SDLC_BODY_END---";
|
|
14035
|
+
let rawOutput = "";
|
|
14036
|
+
try {
|
|
14037
|
+
rawOutput = execFileSync("git", ["log", "--all", `--format=${format}`, "--numstat"], {
|
|
14038
|
+
cwd,
|
|
14039
|
+
encoding: "utf-8",
|
|
14040
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
14041
|
+
});
|
|
14042
|
+
} catch {
|
|
14043
|
+
return [];
|
|
14044
|
+
}
|
|
14045
|
+
if (!rawOutput) return [];
|
|
14046
|
+
const chunks = parseRawLogChunks(rawOutput);
|
|
14047
|
+
const records = [];
|
|
14048
|
+
for (const chunk of chunks) {
|
|
14049
|
+
const rec = buildCommitKpiRecord(chunk);
|
|
14050
|
+
if (rec) records.push(rec);
|
|
14051
|
+
}
|
|
14052
|
+
return records;
|
|
14053
|
+
}
|
|
14054
|
+
|
|
14055
|
+
// src/reporters/pr-kpis.ts
|
|
14056
|
+
var KPI_SUMMARY_START_TAG = "<!-- AI-SDLC-KPI-SUMMARY-START -->";
|
|
14057
|
+
var KPI_SUMMARY_END_TAG = "<!-- AI-SDLC-KPI-SUMMARY-END -->";
|
|
14058
|
+
function calculateEstimatedCost(promptTokens, completionTokens) {
|
|
14059
|
+
const promptCost = promptTokens / 1e6 * 3;
|
|
14060
|
+
const completionCost = completionTokens / 1e6 * 15;
|
|
14061
|
+
return Math.round((promptCost + completionCost) * 1e4) / 1e4;
|
|
14062
|
+
}
|
|
14063
|
+
function createEmptySummary() {
|
|
14064
|
+
return {
|
|
14065
|
+
commits: 0,
|
|
14066
|
+
linesAdded: 0,
|
|
14067
|
+
linesDeleted: 0,
|
|
14068
|
+
activeTimeSeconds: 0,
|
|
14069
|
+
promptTokens: 0,
|
|
14070
|
+
completionTokens: 0,
|
|
14071
|
+
estimatedCostUsd: 0
|
|
14072
|
+
};
|
|
14073
|
+
}
|
|
14074
|
+
function accumulateRecord(target, record) {
|
|
14075
|
+
target.commits += 1;
|
|
14076
|
+
target.linesAdded += record.linesAdded;
|
|
14077
|
+
target.linesDeleted += record.linesDeleted;
|
|
14078
|
+
target.activeTimeSeconds += record.trailers.activeTimeSeconds;
|
|
14079
|
+
target.promptTokens += record.trailers.promptTokens;
|
|
14080
|
+
target.completionTokens += record.trailers.completionTokens;
|
|
14081
|
+
target.estimatedCostUsd = calculateEstimatedCost(target.promptTokens, target.completionTokens);
|
|
14082
|
+
}
|
|
14083
|
+
function accumulateAuthorSummaries(records, humanSummary, byModel) {
|
|
14084
|
+
let linesAdded = 0;
|
|
14085
|
+
let linesDeleted = 0;
|
|
14086
|
+
let activeTime = 0;
|
|
14087
|
+
let prompt = 0;
|
|
14088
|
+
let completion = 0;
|
|
14089
|
+
let isBugPr = false;
|
|
14090
|
+
for (const record of records) {
|
|
14091
|
+
linesAdded += record.linesAdded;
|
|
14092
|
+
linesDeleted += record.linesDeleted;
|
|
14093
|
+
activeTime += record.trailers.activeTimeSeconds;
|
|
14094
|
+
prompt += record.trailers.promptTokens;
|
|
14095
|
+
completion += record.trailers.completionTokens;
|
|
14096
|
+
if (record.isBugFix) isBugPr = true;
|
|
14097
|
+
if (record.trailers.authorType === "agent") {
|
|
14098
|
+
const modelName = record.trailers.aiModel || "agent-generic";
|
|
14099
|
+
if (!byModel[modelName]) byModel[modelName] = createEmptySummary();
|
|
14100
|
+
accumulateRecord(byModel[modelName], record);
|
|
14101
|
+
} else {
|
|
14102
|
+
accumulateRecord(humanSummary, record);
|
|
14103
|
+
}
|
|
14104
|
+
}
|
|
14105
|
+
return { linesAdded, linesDeleted, activeTime, prompt, completion, isBugPr };
|
|
14106
|
+
}
|
|
14107
|
+
function initTaskKpi(taskId) {
|
|
14108
|
+
return {
|
|
14109
|
+
taskId,
|
|
14110
|
+
commits: 0,
|
|
14111
|
+
fixCommits: 0,
|
|
14112
|
+
linesAdded: 0,
|
|
14113
|
+
linesDeleted: 0,
|
|
14114
|
+
codeChurnPercent: 0,
|
|
14115
|
+
totalTokens: 0,
|
|
14116
|
+
activeTimeSeconds: 0,
|
|
14117
|
+
reworkTokens: 0,
|
|
14118
|
+
reworkTokensPercent: 0,
|
|
14119
|
+
reworkTimeSeconds: 0,
|
|
14120
|
+
reworkTimePercent: 0,
|
|
14121
|
+
isFirstTimeRight: true
|
|
14122
|
+
};
|
|
14123
|
+
}
|
|
14124
|
+
function processTaskCommit(tStat, record) {
|
|
14125
|
+
const recTokens = record.trailers.promptTokens + record.trailers.completionTokens;
|
|
14126
|
+
tStat.commits += 1;
|
|
14127
|
+
tStat.linesAdded += record.linesAdded;
|
|
14128
|
+
tStat.linesDeleted += record.linesDeleted;
|
|
14129
|
+
tStat.totalTokens += recTokens;
|
|
14130
|
+
tStat.activeTimeSeconds += record.trailers.activeTimeSeconds;
|
|
14131
|
+
const isRework = record.isBugFix || /^(fix|bug|remediate|refactor)(([^)]+))?:/i.test((record.subject || "").trim());
|
|
14132
|
+
if (isRework) {
|
|
14133
|
+
tStat.fixCommits += 1;
|
|
14134
|
+
tStat.reworkTokens += recTokens;
|
|
14135
|
+
tStat.reworkTimeSeconds += record.trailers.activeTimeSeconds;
|
|
14136
|
+
}
|
|
14137
|
+
}
|
|
14138
|
+
function accumulateTaskSummaries(records) {
|
|
14139
|
+
const byTask = {};
|
|
14140
|
+
for (const record of records) {
|
|
14141
|
+
const tid = record.trailers.taskId || record.subject.match(/\b(TSK-[0-9A-Za-z_-]+)\b/i)?.[1]?.toUpperCase();
|
|
14142
|
+
if (!tid) continue;
|
|
14143
|
+
if (!byTask[tid]) byTask[tid] = initTaskKpi(tid);
|
|
14144
|
+
processTaskCommit(byTask[tid], record);
|
|
14145
|
+
}
|
|
14146
|
+
for (const t of Object.values(byTask)) {
|
|
14147
|
+
const churn = t.linesAdded > 0 ? t.linesDeleted / t.linesAdded * 100 : 0;
|
|
14148
|
+
t.codeChurnPercent = Math.round(Math.min(churn, 100) * 10) / 10;
|
|
14149
|
+
t.reworkTokensPercent = t.totalTokens > 0 ? Math.round(t.reworkTokens / t.totalTokens * 1e3) / 10 : 0;
|
|
14150
|
+
t.reworkTimePercent = t.activeTimeSeconds > 0 ? Math.round(t.reworkTimeSeconds / t.activeTimeSeconds * 1e3) / 10 : 0;
|
|
14151
|
+
t.isFirstTimeRight = t.fixCommits === 0 && t.codeChurnPercent < 25;
|
|
14152
|
+
}
|
|
14153
|
+
return byTask;
|
|
14154
|
+
}
|
|
14155
|
+
function assemblePrKpiAggregation(baseRef, headRef, records, totals, humanSummary, byModel, byTask) {
|
|
14156
|
+
const totalTokens = totals.prompt + totals.completion;
|
|
14157
|
+
return {
|
|
14158
|
+
baseRef,
|
|
14159
|
+
headRef,
|
|
14160
|
+
totalCommits: records.length,
|
|
14161
|
+
linesAdded: totals.linesAdded,
|
|
14162
|
+
linesDeleted: totals.linesDeleted,
|
|
14163
|
+
totalActiveTimeSeconds: totals.activeTime,
|
|
14164
|
+
totalPromptTokens: totals.prompt,
|
|
14165
|
+
totalCompletionTokens: totals.completion,
|
|
14166
|
+
totalTokens,
|
|
14167
|
+
estimatedCostUsd: calculateEstimatedCost(totals.prompt, totals.completion),
|
|
14168
|
+
humanSummary,
|
|
14169
|
+
byModel,
|
|
14170
|
+
isBugPr: totals.isBugPr,
|
|
14171
|
+
commitRecords: records,
|
|
14172
|
+
byTask
|
|
14173
|
+
};
|
|
14174
|
+
}
|
|
14175
|
+
function aggregateCommitKpiRecords(records, baseRef = "main", headRef = "HEAD") {
|
|
14176
|
+
const humanSummary = createEmptySummary();
|
|
14177
|
+
const byModel = {};
|
|
14178
|
+
const totals = accumulateAuthorSummaries(records, humanSummary, byModel);
|
|
14179
|
+
const byTask = accumulateTaskSummaries(records);
|
|
14180
|
+
return assemblePrKpiAggregation(baseRef, headRef, records, totals, humanSummary, byModel, byTask);
|
|
14181
|
+
}
|
|
14182
|
+
function aggregatePrKpis(baseRef, headRef = "HEAD", options = {}) {
|
|
14183
|
+
const records = extractCommitKpisFromRange(baseRef, headRef, options);
|
|
14184
|
+
return aggregateCommitKpiRecords(records, baseRef, headRef);
|
|
14185
|
+
}
|
|
14186
|
+
function formatMinutes(seconds) {
|
|
14187
|
+
const mins = Math.round(seconds / 60);
|
|
14188
|
+
return mins > 0 ? `${mins} min` : `${seconds}s`;
|
|
14189
|
+
}
|
|
14190
|
+
function buildPrKpiRows(kpi, models) {
|
|
14191
|
+
const human = kpi.humanSummary;
|
|
14192
|
+
const commitCols = models.map((m) => kpi.byModel[m].commits).join(" | ");
|
|
14193
|
+
const linesCols = models.map((m) => `+${kpi.byModel[m].linesAdded} / -${kpi.byModel[m].linesDeleted}`).join(" | ");
|
|
14194
|
+
const timeCols = models.map((m) => formatMinutes(kpi.byModel[m].activeTimeSeconds)).join(" | ");
|
|
14195
|
+
const tokenCols = models.map((m) => `${(kpi.byModel[m].promptTokens + kpi.byModel[m].completionTokens).toLocaleString("en-US")}`).join(" | ");
|
|
14196
|
+
const costCols = models.map((m) => `$${kpi.byModel[m].estimatedCostUsd.toFixed(2)}`).join(" | ");
|
|
14197
|
+
const totalLines = `+${kpi.linesAdded} / -${kpi.linesDeleted}`;
|
|
14198
|
+
const totalTime = formatMinutes(kpi.totalActiveTimeSeconds);
|
|
14199
|
+
const totalTokensStr = `${kpi.totalTokens.toLocaleString("en-US")} tokens`;
|
|
14200
|
+
const totalCostStr = `$${kpi.estimatedCostUsd.toFixed(2)} USD`;
|
|
14201
|
+
return [
|
|
14202
|
+
`| **Commits** | ${human.commits} |${models.length > 0 ? ` ${commitCols} |` : ""} **${kpi.totalCommits}** |`,
|
|
14203
|
+
`| **Lines Added / Deleted** | +${human.linesAdded} / -${human.linesDeleted} |${models.length > 0 ? ` ${linesCols} |` : ""} **${totalLines}** |`,
|
|
14204
|
+
`| **Active Development Time** | ${formatMinutes(human.activeTimeSeconds)} |${models.length > 0 ? ` ${timeCols} |` : ""} **${totalTime}** |`,
|
|
14205
|
+
`| **Tokens Consumed (In+Out)** | 0 |${models.length > 0 ? ` ${tokenCols} |` : ""} **${totalTokensStr}** |`,
|
|
14206
|
+
`| **Estimated Cost (USD)** | \u2014 (Human labor) |${models.length > 0 ? ` ${costCols} |` : ""} **${totalCostStr}** |`
|
|
14207
|
+
];
|
|
14208
|
+
}
|
|
14209
|
+
function formatTaskKpiRows(byTask) {
|
|
14210
|
+
const taskIds = Object.keys(byTask || {});
|
|
14211
|
+
if (taskIds.length === 0) return [];
|
|
14212
|
+
const rows = [
|
|
14213
|
+
"",
|
|
14214
|
+
"#### \u{1F4CB} Task-Level Rework & Code Churn Breakdown",
|
|
14215
|
+
"",
|
|
14216
|
+
"| Task ID | Commits (Total / Fix) | Lines (+ / -) | Code Churn % | Rework Tokens % | Rework Time % | Status |",
|
|
14217
|
+
"| :--- | :---: | :---: | :---: | :---: | :---: | :---: |"
|
|
14218
|
+
];
|
|
14219
|
+
for (const tid of taskIds) {
|
|
14220
|
+
const t = byTask[tid];
|
|
14221
|
+
const statusLabel = t.isFirstTimeRight ? "\u2714 First-Time-Right" : `\u26A0 ${t.fixCommits} rework commit${t.fixCommits === 1 ? "" : "s"}`;
|
|
14222
|
+
rows.push(
|
|
14223
|
+
`| \`${t.taskId}\` | ${t.commits} (${t.fixCommits} fix) | +${t.linesAdded} / -${t.linesDeleted} | ${t.codeChurnPercent}% | ${t.reworkTokensPercent}% | ${t.reworkTimePercent}% | ${statusLabel} |`
|
|
14224
|
+
);
|
|
14225
|
+
}
|
|
14226
|
+
return rows;
|
|
14227
|
+
}
|
|
14228
|
+
function formatPrKpiMarkdown(kpi) {
|
|
14229
|
+
const models = Object.keys(kpi.byModel);
|
|
14230
|
+
const modelHeaders = models.map((m) => `Agent (${m})`).join(" | ");
|
|
14231
|
+
const modelSeparator = models.map(() => ":---:").join(" | ");
|
|
14232
|
+
const headers = `| Metric | Human |${models.length > 0 ? ` ${modelHeaders} |` : ""} Total PR |`;
|
|
14233
|
+
const sep5 = `| :--- | :---: |${models.length > 0 ? ` ${modelSeparator} |` : ""} :---: |`;
|
|
14234
|
+
const rows = buildPrKpiRows(kpi, models);
|
|
14235
|
+
const taskRowsList = formatTaskKpiRows(kpi.byTask);
|
|
14236
|
+
return [
|
|
14237
|
+
KPI_SUMMARY_START_TAG,
|
|
14238
|
+
"### \u{1F4CA} AI-SDLC: Aggregated PR KPI Summary",
|
|
14239
|
+
"",
|
|
14240
|
+
headers,
|
|
14241
|
+
sep5,
|
|
14242
|
+
...rows,
|
|
14243
|
+
...taskRowsList,
|
|
14244
|
+
"",
|
|
14245
|
+
`> **Branch Attribution:** ${kpi.isBugPr ? "\u{1F6A8} *Defect Fix / Bugfix*" : "\u2728 *New Feature*"} (Range: \`${kpi.baseRef}..${kpi.headRef}\`)`,
|
|
14246
|
+
KPI_SUMMARY_END_TAG
|
|
14247
|
+
].join("\n");
|
|
14248
|
+
}
|
|
14249
|
+
function injectKpisIntoPrBody(originalBody, kpiMarkdown) {
|
|
14250
|
+
const body = originalBody || "";
|
|
14251
|
+
const startIndex = body.indexOf(KPI_SUMMARY_START_TAG);
|
|
14252
|
+
const endIndex = body.indexOf(KPI_SUMMARY_END_TAG);
|
|
14253
|
+
if (startIndex !== -1 && endIndex !== -1) {
|
|
14254
|
+
const before = body.slice(0, startIndex);
|
|
14255
|
+
const after = body.slice(endIndex + KPI_SUMMARY_END_TAG.length);
|
|
14256
|
+
return `${before.trimEnd()}
|
|
14257
|
+
|
|
14258
|
+
${kpiMarkdown}
|
|
14259
|
+
|
|
14260
|
+
${after.trimStart()}`.trim();
|
|
14261
|
+
}
|
|
14262
|
+
return `${body.trimEnd()}
|
|
14263
|
+
|
|
14264
|
+
${kpiMarkdown}
|
|
14265
|
+
`;
|
|
14266
|
+
}
|
|
14267
|
+
|
|
14268
|
+
// src/reporters/agent-kpis.ts
|
|
14269
|
+
function roundOneDecimal(value) {
|
|
14270
|
+
return Math.round(value * 10) / 10;
|
|
14271
|
+
}
|
|
14272
|
+
function computeAuditedCommitsPercent(records) {
|
|
14273
|
+
if (records.length === 0) return 0;
|
|
14274
|
+
const audited = records.filter((r) => r.trailers.isTelemetryEstimated === false).length;
|
|
14275
|
+
return roundOneDecimal(audited / records.length * 100);
|
|
14276
|
+
}
|
|
14277
|
+
function computeTaskYieldAndRework(records) {
|
|
14278
|
+
const tasks = Object.values(accumulateTaskSummaries(records));
|
|
14279
|
+
if (tasks.length === 0) {
|
|
14280
|
+
return { totalTasks: 0, firstPassYieldPercent: 100, reworkLoopsPerTask: 0 };
|
|
14281
|
+
}
|
|
14282
|
+
const firstPassCount = tasks.filter((t) => t.isFirstTimeRight).length;
|
|
14283
|
+
const totalReworkLoops = tasks.reduce((sum, t) => sum + t.fixCommits, 0);
|
|
14284
|
+
return {
|
|
14285
|
+
totalTasks: tasks.length,
|
|
14286
|
+
firstPassYieldPercent: roundOneDecimal(firstPassCount / tasks.length * 100),
|
|
14287
|
+
reworkLoopsPerTask: Math.round(totalReworkLoops / tasks.length * 100) / 100
|
|
14288
|
+
};
|
|
14289
|
+
}
|
|
14290
|
+
function resolveTaskKey(record) {
|
|
14291
|
+
return record.trailers.taskId || record.subject.match(/\b(TSK-[0-9A-Za-z_-]+)\b/i)?.[1]?.toUpperCase();
|
|
14292
|
+
}
|
|
14293
|
+
function computeHumanTakeoverRate(records) {
|
|
14294
|
+
const byTask = /* @__PURE__ */ new Map();
|
|
14295
|
+
for (const r of records) {
|
|
14296
|
+
const tid = resolveTaskKey(r);
|
|
14297
|
+
if (!tid) continue;
|
|
14298
|
+
const state = byTask.get(tid) || { hasAgent: false, hasHumanTakeover: false };
|
|
14299
|
+
if (r.trailers.authorType === "agent") {
|
|
14300
|
+
state.hasAgent = true;
|
|
14301
|
+
} else if (state.hasAgent || r.isBugFix) {
|
|
14302
|
+
state.hasHumanTakeover = true;
|
|
14303
|
+
}
|
|
14304
|
+
byTask.set(tid, state);
|
|
14305
|
+
}
|
|
14306
|
+
const agentTasks = Array.from(byTask.values()).filter((s) => s.hasAgent);
|
|
14307
|
+
if (agentTasks.length === 0) return 0;
|
|
14308
|
+
const takeovers = agentTasks.filter((s) => s.hasHumanTakeover).length;
|
|
14309
|
+
return roundOneDecimal(takeovers / agentTasks.length * 100);
|
|
14310
|
+
}
|
|
14311
|
+
function computeSpecificationAdherence(input) {
|
|
14312
|
+
const cov = input.coverageResult;
|
|
14313
|
+
const trace = input.traceabilityResult;
|
|
14314
|
+
const gate = input.gateResult;
|
|
14315
|
+
const bddRatio = cov && cov.totalRequirements > 0 ? cov.passedRequirements / cov.totalRequirements : 1;
|
|
14316
|
+
const traceRatio = trace && trace.totalRequirements > 0 ? (trace.totalRequirements - trace.orphanCount) / trace.totalRequirements : 1;
|
|
14317
|
+
const gateRatio = gate && gate.totalFunctions > 0 ? (gate.totalFunctions - gate.failCount) / gate.totalFunctions : 1;
|
|
14318
|
+
return roundOneDecimal((bddRatio + traceRatio + gateRatio) / 3 * 100);
|
|
14319
|
+
}
|
|
14320
|
+
function computeTokenCostEfficiency(records, gateResult) {
|
|
14321
|
+
if (!gateResult || gateResult.results.length === 0) return 0;
|
|
14322
|
+
const totalCc = gateResult.results.reduce((sum, fn) => sum + fn.cyclomatic, 0);
|
|
14323
|
+
if (totalCc <= 0) return 0;
|
|
14324
|
+
const totalTokens = records.reduce(
|
|
14325
|
+
(sum, r) => sum + r.trailers.promptTokens + r.trailers.completionTokens,
|
|
14326
|
+
0
|
|
14327
|
+
);
|
|
14328
|
+
return Math.round(totalTokens / totalCc);
|
|
14329
|
+
}
|
|
14330
|
+
function isComponentContractPath(filePath) {
|
|
14331
|
+
const normalized = filePath.replace(/\\/g, "/").toLowerCase();
|
|
14332
|
+
return normalized.includes("specs/architecture/components/") || /\/?cmp-[^/]+\.md$/i.test(normalized);
|
|
14333
|
+
}
|
|
14334
|
+
function computeArchitectureDriftRate(records) {
|
|
14335
|
+
const cmpCommits = records.filter((r) => (r.touchedFiles || []).some(isComponentContractPath));
|
|
14336
|
+
if (cmpCommits.length === 0) return 0;
|
|
14337
|
+
const unauthorized = cmpCommits.filter((r) => {
|
|
14338
|
+
const ref = r.trailers.parentRef || "";
|
|
14339
|
+
const hasApprovedRef = /^(CHG|ADR)-/i.test(ref) || Boolean(r.trailers.taskId);
|
|
14340
|
+
return !hasApprovedRef;
|
|
14341
|
+
});
|
|
14342
|
+
return roundOneDecimal(unauthorized.length / cmpCommits.length * 100);
|
|
14343
|
+
}
|
|
14344
|
+
function computeAgentPerformanceKpis(input) {
|
|
14345
|
+
const { totalTasks, firstPassYieldPercent, reworkLoopsPerTask } = computeTaskYieldAndRework(input.records);
|
|
14346
|
+
return {
|
|
14347
|
+
totalCommits: input.records.length,
|
|
14348
|
+
totalTasks,
|
|
14349
|
+
auditedCommitsPercent: computeAuditedCommitsPercent(input.records),
|
|
14350
|
+
firstPassYieldPercent,
|
|
14351
|
+
reworkLoopsPerTask,
|
|
14352
|
+
specificationAdherenceIndex: computeSpecificationAdherence(input),
|
|
14353
|
+
humanTakeoverRatePercent: computeHumanTakeoverRate(input.records),
|
|
14354
|
+
tokenCostEfficiency: computeTokenCostEfficiency(input.records, input.gateResult),
|
|
14355
|
+
architectureDriftRatePercent: computeArchitectureDriftRate(input.records)
|
|
14356
|
+
};
|
|
14357
|
+
}
|
|
14358
|
+
function formatAgentKpisMarkdownSection(kpis) {
|
|
14359
|
+
return [
|
|
14360
|
+
"## 2. AI Agent Performance KPIs (SWE-bench & DORA AI)",
|
|
14361
|
+
"",
|
|
14362
|
+
`> **Evaluated Tasks:** \`${kpis.totalTasks}\` | **Commits:** \`${kpis.totalCommits}\` | **Audited Trailer Coverage:** \`${kpis.auditedCommitsPercent}%\``,
|
|
14363
|
+
"",
|
|
14364
|
+
"| KPI | Measured Value | Benchmark / Target |",
|
|
14365
|
+
"| :--- | :---: | :---: |",
|
|
14366
|
+
`| **First-Pass Yield (FPY)** | \`${kpis.firstPassYieldPercent}%\` | $\\ge 80\\%$ |`,
|
|
14367
|
+
`| **Rework Loops per Task** | \`${kpis.reworkLoopsPerTask}\` | $\\le 0.5$ |`,
|
|
14368
|
+
`| **Specification Adherence Index** | \`${kpis.specificationAdherenceIndex}%\` | $\\ge 95\\%$ |`,
|
|
14369
|
+
`| **Human Takeover / Intervention Rate** | \`${kpis.humanTakeoverRatePercent}%\` | $\\le 15\\%$ |`,
|
|
14370
|
+
`| **Token Cost Efficiency** | \`${kpis.tokenCostEfficiency.toLocaleString("en-US")} tokens/CC\` | Lower is better |`,
|
|
14371
|
+
`| **Architecture Drift Rate** | \`${kpis.architectureDriftRatePercent}%\` | $0\\%$ |`
|
|
14372
|
+
];
|
|
14373
|
+
}
|
|
14374
|
+
|
|
14375
|
+
// src/reporters/quality-report.ts
|
|
13828
14376
|
function calculateRating(mi, cc) {
|
|
13829
14377
|
if (mi >= 75 && cc <= 5) return "A";
|
|
13830
14378
|
if (mi >= 60 && cc <= 10) return "B";
|
|
@@ -13973,19 +14521,39 @@ function buildExecutiveTable(gateResult, totalLoc, averages, coverage) {
|
|
|
13973
14521
|
`| **Functions in Violation** | \`${failCount}\` | $0$ (Mode ${policy.enforce_mode}) | ${status.violStatus} |`
|
|
13974
14522
|
];
|
|
13975
14523
|
}
|
|
13976
|
-
function
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
const table = buildExecutiveTable(gateResult, accumulated.totalLoc, averages, coverage);
|
|
13980
|
-
const polyglot = [
|
|
13981
|
-
"## 2. Polyglot Breakdown by Language Ecosystem",
|
|
14524
|
+
function buildPolyglotSection(langMap) {
|
|
14525
|
+
return [
|
|
14526
|
+
"## 3. Polyglot Breakdown by Language Ecosystem",
|
|
13982
14527
|
"",
|
|
13983
14528
|
"| Language | Functions | Total LOC | Average MI | Average CC | Rating |",
|
|
13984
14529
|
"| :--- | :---: | :---: | :---: | :---: | :---: |",
|
|
13985
|
-
...renderPolyglotRows(
|
|
14530
|
+
...renderPolyglotRows(langMap)
|
|
14531
|
+
];
|
|
14532
|
+
}
|
|
14533
|
+
function renderQualityReportMarkdown(gateResult, coverage, accumulated, averages, agentKpis) {
|
|
14534
|
+
const verdict = gateResult.success ? "PASS" : "FAIL";
|
|
14535
|
+
const sections = [
|
|
14536
|
+
buildReportHeader3(verdict, averages.globalRating, averages.avgMaintainability, averages.avgCyclomatic),
|
|
14537
|
+
buildExecutiveTable(gateResult, accumulated.totalLoc, averages, coverage),
|
|
14538
|
+
formatAgentKpisMarkdownSection(agentKpis),
|
|
14539
|
+
buildPolyglotSection(accumulated.langMap)
|
|
13986
14540
|
];
|
|
13987
|
-
|
|
13988
|
-
|
|
14541
|
+
if (accumulated.violationsList.length > 0) {
|
|
14542
|
+
sections.push(["## 4. Quality Gate Violations Log", "", ...accumulated.violationsList]);
|
|
14543
|
+
}
|
|
14544
|
+
return [...sections.map((s) => s.join("\n")), EVALUATION_STANDARDS_MD].join("\n\n---\n\n");
|
|
14545
|
+
}
|
|
14546
|
+
function collectAgentKpisForReport(rootDir, gateResult) {
|
|
14547
|
+
const records = extractAllRepoCommitKpis({ cwd: rootDir });
|
|
14548
|
+
const hasSpecs = fs12.existsSync(path14.join(rootDir, "specs"));
|
|
14549
|
+
const coverageResult = hasSpecs ? verifyTestingCoverage({ rootDir }) : void 0;
|
|
14550
|
+
const traceabilityResult = hasSpecs ? verifyTraceability({ rootDir }) : void 0;
|
|
14551
|
+
return computeAgentPerformanceKpis({
|
|
14552
|
+
records,
|
|
14553
|
+
gateResult,
|
|
14554
|
+
coverageResult,
|
|
14555
|
+
traceabilityResult
|
|
14556
|
+
});
|
|
13989
14557
|
}
|
|
13990
14558
|
function writeQualityReportFile(rootDir, markdown) {
|
|
13991
14559
|
const targetPath = path14.join(rootDir, "reports", "QUALITY_REPORT.md");
|
|
@@ -14001,7 +14569,8 @@ function generateQualityReport(options = {}) {
|
|
|
14001
14569
|
const coverage = readCodeCoverageSummary(rootDir);
|
|
14002
14570
|
const accumulated = accumulateMetrics(gateResult.results);
|
|
14003
14571
|
const averages = computeQualityAverages(gateResult.totalFunctions, accumulated);
|
|
14004
|
-
const
|
|
14572
|
+
const agentKpis = collectAgentKpisForReport(rootDir, gateResult);
|
|
14573
|
+
const markdown = renderQualityReportMarkdown(gateResult, coverage, accumulated, averages, agentKpis);
|
|
14005
14574
|
writeQualityReportFile(rootDir, markdown);
|
|
14006
14575
|
return {
|
|
14007
14576
|
markdown,
|
|
@@ -14350,243 +14919,27 @@ function buildCheckoutSuccessResult(match, hierarchy, created, switchedBranch, s
|
|
|
14350
14919
|
taskId: match.taskId,
|
|
14351
14920
|
changeId: match.changeId,
|
|
14352
14921
|
releaseBranch: hierarchy.releaseBranch,
|
|
14353
|
-
featureBranch: hierarchy.featureBranch,
|
|
14354
|
-
taskBranch: streamlined ? void 0 : hierarchy.taskBranch,
|
|
14355
|
-
createdBranches: created,
|
|
14356
|
-
switchedBranch
|
|
14357
|
-
};
|
|
14358
|
-
}
|
|
14359
|
-
function checkoutTaskBranch(taskId, options = {}) {
|
|
14360
|
-
const rootDir = options.rootDir || process.cwd();
|
|
14361
|
-
const locateRes = locateTaskInActiveChanges(taskId, rootDir);
|
|
14362
|
-
if (!locateRes.found || !locateRes.match) {
|
|
14363
|
-
return buildLocateFailureResult(taskId, locateRes);
|
|
14364
|
-
}
|
|
14365
|
-
const match = locateRes.match;
|
|
14366
|
-
const hierarchy = resolveBranchHierarchy(match, rootDir);
|
|
14367
|
-
const created = [];
|
|
14368
|
-
try {
|
|
14369
|
-
const switched = cascadeBranchCheckout(hierarchy, rootDir, created, options.streamlined);
|
|
14370
|
-
return buildCheckoutSuccessResult(match, hierarchy, created, switched, options.streamlined);
|
|
14371
|
-
} catch (err) {
|
|
14372
|
-
return buildCheckoutErrorResult(match, hierarchy, created, err);
|
|
14373
|
-
}
|
|
14374
|
-
}
|
|
14375
|
-
var TRAILER_REGEXES = {
|
|
14376
|
-
taskId: /^\s*Task-ID:\s*(.+)$/im,
|
|
14377
|
-
parentRef: /^\s*Parent-Ref:\s*(.+)$/im,
|
|
14378
|
-
authorType: /^\s*Author-Type:\s*(human|agent)/im,
|
|
14379
|
-
aiModel: /^\s*AI-Model:\s*(.+)$/im,
|
|
14380
|
-
promptTokens: /^\s*Prompt-Tokens:\s*([0-9]+)/im,
|
|
14381
|
-
completionTokens: /^\s*Completion-Tokens:\s*([0-9]+)/im,
|
|
14382
|
-
activeTimeSeconds: /^\s*Active-Time-Seconds:\s*([0-9]+)/im
|
|
14383
|
-
};
|
|
14384
|
-
function parseTrailerInt(match) {
|
|
14385
|
-
if (!match) return 0;
|
|
14386
|
-
const val = parseInt(match[1], 10);
|
|
14387
|
-
return isNaN(val) ? 0 : val;
|
|
14388
|
-
}
|
|
14389
|
-
function resolveAuthorType(authorTypeMatch, aiModelMatch) {
|
|
14390
|
-
if (authorTypeMatch) {
|
|
14391
|
-
return authorTypeMatch[1].toLowerCase();
|
|
14392
|
-
}
|
|
14393
|
-
if (aiModelMatch && aiModelMatch[1].trim() !== "n/a") {
|
|
14394
|
-
return "agent";
|
|
14395
|
-
}
|
|
14396
|
-
return "human";
|
|
14397
|
-
}
|
|
14398
|
-
function resolveTrailerOrScope(match, text, fallbackRegex) {
|
|
14399
|
-
if (match) return match[1].trim();
|
|
14400
|
-
const subMatch = text.match(fallbackRegex);
|
|
14401
|
-
return subMatch ? subMatch[1].toUpperCase() : void 0;
|
|
14402
|
-
}
|
|
14403
|
-
function parseCommitTrailers(rawMessage) {
|
|
14404
|
-
const text = rawMessage || "";
|
|
14405
|
-
const authorTypeMatch = text.match(TRAILER_REGEXES.authorType);
|
|
14406
|
-
const aiModelMatch = text.match(TRAILER_REGEXES.aiModel);
|
|
14407
|
-
const authorType = resolveAuthorType(authorTypeMatch, aiModelMatch);
|
|
14408
|
-
const rawModel = aiModelMatch ? aiModelMatch[1].trim() : void 0;
|
|
14409
|
-
const aiModel = rawModel && rawModel !== "n/a" ? rawModel : void 0;
|
|
14410
|
-
return {
|
|
14411
|
-
taskId: resolveTrailerOrScope(text.match(TRAILER_REGEXES.taskId), text, /\b(TSK-[0-9A-Za-z_-]+)\b/i),
|
|
14412
|
-
parentRef: resolveTrailerOrScope(text.match(TRAILER_REGEXES.parentRef), text, /\b((?:CHG|FEAT|BUG|FIX|PATCH)-[0-9A-Za-z_-]+)\b/i),
|
|
14413
|
-
authorType,
|
|
14414
|
-
aiModel,
|
|
14415
|
-
promptTokens: parseTrailerInt(text.match(TRAILER_REGEXES.promptTokens)),
|
|
14416
|
-
completionTokens: parseTrailerInt(text.match(TRAILER_REGEXES.completionTokens)),
|
|
14417
|
-
activeTimeSeconds: parseTrailerInt(text.match(TRAILER_REGEXES.activeTimeSeconds))
|
|
14418
|
-
};
|
|
14419
|
-
}
|
|
14420
|
-
function formatCommitTrailers(trailers) {
|
|
14421
|
-
const lines = [];
|
|
14422
|
-
if (trailers.taskId) lines.push(`Task-ID: ${trailers.taskId}`);
|
|
14423
|
-
if (trailers.parentRef) lines.push(`Parent-Ref: ${trailers.parentRef}`);
|
|
14424
|
-
lines.push(`Author-Type: ${trailers.authorType || "human"}`);
|
|
14425
|
-
lines.push(`AI-Model: ${trailers.aiModel || "n/a"}`);
|
|
14426
|
-
lines.push(`Prompt-Tokens: ${trailers.promptTokens ?? 0}`);
|
|
14427
|
-
lines.push(`Completion-Tokens: ${trailers.completionTokens ?? 0}`);
|
|
14428
|
-
lines.push(`Active-Time-Seconds: ${trailers.activeTimeSeconds ?? 0}`);
|
|
14429
|
-
return lines.join("\n");
|
|
14430
|
-
}
|
|
14431
|
-
function parseRawLogChunks(rawLog) {
|
|
14432
|
-
const rawCommits = rawLog.split("---AI_SDLC_COMMIT---").filter((c) => c.trim().length > 0);
|
|
14433
|
-
const chunks = [];
|
|
14434
|
-
for (const raw of rawCommits) {
|
|
14435
|
-
const endBodyIdx = raw.indexOf("---AI_SDLC_BODY_END---");
|
|
14436
|
-
if (endBodyIdx === -1) continue;
|
|
14437
|
-
const beforeEnd = raw.slice(0, endBodyIdx).trimStart();
|
|
14438
|
-
const afterEnd = raw.slice(endBodyIdx + "---AI_SDLC_BODY_END---".length);
|
|
14439
|
-
const firstNewline = beforeEnd.indexOf("\n");
|
|
14440
|
-
const header = firstNewline === -1 ? beforeEnd : beforeEnd.slice(0, firstNewline);
|
|
14441
|
-
const body = firstNewline === -1 ? "" : beforeEnd.slice(firstNewline + 1);
|
|
14442
|
-
const numstatLines = afterEnd.split("\n").filter((l) => /^\d+\s+\d+\s+/.test(l.trim()));
|
|
14443
|
-
chunks.push({ header, body, numstatLines });
|
|
14444
|
-
}
|
|
14445
|
-
return chunks;
|
|
14446
|
-
}
|
|
14447
|
-
function sumNumstatLines(lines) {
|
|
14448
|
-
let added = 0;
|
|
14449
|
-
let deleted = 0;
|
|
14450
|
-
for (const line of lines) {
|
|
14451
|
-
const parts = line.trim().split(/\s+/);
|
|
14452
|
-
if (parts.length >= 2) {
|
|
14453
|
-
const a = parseInt(parts[0], 10);
|
|
14454
|
-
const d = parseInt(parts[1], 10);
|
|
14455
|
-
if (!isNaN(a)) added += a;
|
|
14456
|
-
if (!isNaN(d)) deleted += d;
|
|
14457
|
-
}
|
|
14458
|
-
}
|
|
14459
|
-
return { added, deleted };
|
|
14460
|
-
}
|
|
14461
|
-
function evaluateIsBugFix(subject, parentRef) {
|
|
14462
|
-
if (parentRef && /^(BUG|FIX)-/i.test(parentRef)) return true;
|
|
14463
|
-
return /^(fix|bug)(\([^)]+\))?:/i.test(subject.trim());
|
|
14464
|
-
}
|
|
14465
|
-
function inferAgentTrailers(trailers, linesAdded, linesDeleted) {
|
|
14466
|
-
const res = { ...trailers };
|
|
14467
|
-
const linesChanged = linesAdded + linesDeleted;
|
|
14468
|
-
if (res.promptTokens === 0 && res.completionTokens === 0) {
|
|
14469
|
-
res.completionTokens = linesChanged > 0 ? Math.max(linesAdded * 10, 50) : 0;
|
|
14470
|
-
res.promptTokens = linesChanged > 0 ? Math.max(2500 + linesChanged * 25, 3e3) : 1e3;
|
|
14471
|
-
}
|
|
14472
|
-
if (res.activeTimeSeconds === 0) {
|
|
14473
|
-
res.activeTimeSeconds = linesChanged > 0 ? Math.round(30 + linesChanged * 0.5) : 30;
|
|
14474
|
-
}
|
|
14475
|
-
return res;
|
|
14476
|
-
}
|
|
14477
|
-
function inferHumanTrailers(trailers, linesAdded, linesDeleted) {
|
|
14478
|
-
const res = { ...trailers };
|
|
14479
|
-
const linesChanged = linesAdded + linesDeleted;
|
|
14480
|
-
if (res.activeTimeSeconds === 0) {
|
|
14481
|
-
res.activeTimeSeconds = linesChanged > 0 ? Math.round(180 + linesChanged * 2) : 120;
|
|
14482
|
-
}
|
|
14483
|
-
return res;
|
|
14484
|
-
}
|
|
14485
|
-
function inferMissingTrailers(trailers, linesAdded, linesDeleted) {
|
|
14486
|
-
return trailers.authorType === "agent" ? inferAgentTrailers(trailers, linesAdded, linesDeleted) : inferHumanTrailers(trailers, linesAdded, linesDeleted);
|
|
14487
|
-
}
|
|
14488
|
-
function resolveGitRef(cwd, ref) {
|
|
14489
|
-
if (!ref || ref === "HEAD") return ref;
|
|
14490
|
-
const candidates = [
|
|
14491
|
-
ref,
|
|
14492
|
-
`feat/${ref}`,
|
|
14493
|
-
`release/${ref}`,
|
|
14494
|
-
`bug/${ref}`,
|
|
14495
|
-
`task/${ref}`,
|
|
14496
|
-
`origin/${ref}`,
|
|
14497
|
-
`origin/feat/${ref}`,
|
|
14498
|
-
`origin/release/${ref}`,
|
|
14499
|
-
`origin/bug/${ref}`
|
|
14500
|
-
];
|
|
14501
|
-
for (const cand of candidates) {
|
|
14502
|
-
try {
|
|
14503
|
-
execFileSync("git", ["rev-parse", "--verify", "--quiet", cand], {
|
|
14504
|
-
cwd,
|
|
14505
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14506
|
-
});
|
|
14507
|
-
return cand;
|
|
14508
|
-
} catch {
|
|
14509
|
-
}
|
|
14510
|
-
}
|
|
14511
|
-
return ref;
|
|
14512
|
-
}
|
|
14513
|
-
function fetchGitLogOutput(cwd, baseRef, headRef, format) {
|
|
14514
|
-
const rangeArg = baseRef ? `${baseRef}..${headRef}` : headRef;
|
|
14515
|
-
try {
|
|
14516
|
-
return execFileSync("git", ["log", rangeArg, `--format=${format}`, "--numstat"], {
|
|
14517
|
-
cwd,
|
|
14518
|
-
encoding: "utf-8",
|
|
14519
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14520
|
-
});
|
|
14521
|
-
} catch {
|
|
14522
|
-
if (baseRef && !baseRef.includes("/")) {
|
|
14523
|
-
try {
|
|
14524
|
-
return execFileSync("git", ["log", `origin/${baseRef}..${headRef}`, `--format=${format}`, `--numstat`], {
|
|
14525
|
-
cwd,
|
|
14526
|
-
encoding: "utf-8",
|
|
14527
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14528
|
-
});
|
|
14529
|
-
} catch {
|
|
14530
|
-
return "";
|
|
14531
|
-
}
|
|
14532
|
-
}
|
|
14533
|
-
return "";
|
|
14534
|
-
}
|
|
14535
|
-
}
|
|
14536
|
-
function buildCommitKpiRecord(chunk) {
|
|
14537
|
-
const fields = chunk.header.split("");
|
|
14538
|
-
if (fields.length < 5) return null;
|
|
14539
|
-
const rawTrailers = parseCommitTrailers(chunk.body);
|
|
14540
|
-
const { added, deleted } = sumNumstatLines(chunk.numstatLines);
|
|
14541
|
-
const trailers = inferMissingTrailers(rawTrailers, added, deleted);
|
|
14542
|
-
return {
|
|
14543
|
-
sha: fields[0],
|
|
14544
|
-
authorName: fields[1],
|
|
14545
|
-
authorEmail: fields[2],
|
|
14546
|
-
date: fields[3],
|
|
14547
|
-
subject: fields[4],
|
|
14548
|
-
trailers,
|
|
14549
|
-
linesAdded: added,
|
|
14550
|
-
linesDeleted: deleted,
|
|
14551
|
-
isBugFix: evaluateIsBugFix(fields[4], trailers.parentRef)
|
|
14552
|
-
};
|
|
14553
|
-
}
|
|
14554
|
-
function extractCommitKpisFromRange(baseRef, headRef = "HEAD", options = {}) {
|
|
14555
|
-
const cwd = options.cwd || process.cwd();
|
|
14556
|
-
const resolvedBase = resolveGitRef(cwd, baseRef);
|
|
14557
|
-
const resolvedHead = resolveGitRef(cwd, headRef);
|
|
14558
|
-
const format = "---AI_SDLC_COMMIT---%n%H%x1f%an%x1f%ae%x1f%aI%x1f%s%n%B%n---AI_SDLC_BODY_END---";
|
|
14559
|
-
const rawOutput = fetchGitLogOutput(cwd, resolvedBase, resolvedHead, format);
|
|
14560
|
-
if (!rawOutput) return [];
|
|
14561
|
-
const chunks = parseRawLogChunks(rawOutput);
|
|
14562
|
-
const records = [];
|
|
14563
|
-
for (const chunk of chunks) {
|
|
14564
|
-
const rec = buildCommitKpiRecord(chunk);
|
|
14565
|
-
if (rec) records.push(rec);
|
|
14566
|
-
}
|
|
14567
|
-
return records;
|
|
14922
|
+
featureBranch: hierarchy.featureBranch,
|
|
14923
|
+
taskBranch: streamlined ? void 0 : hierarchy.taskBranch,
|
|
14924
|
+
createdBranches: created,
|
|
14925
|
+
switchedBranch
|
|
14926
|
+
};
|
|
14568
14927
|
}
|
|
14569
|
-
function
|
|
14570
|
-
const
|
|
14571
|
-
const
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
rawOutput = execFileSync("git", ["log", "--all", `--format=${format}`, "--numstat"], {
|
|
14575
|
-
cwd,
|
|
14576
|
-
encoding: "utf-8",
|
|
14577
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14578
|
-
});
|
|
14579
|
-
} catch {
|
|
14580
|
-
return [];
|
|
14928
|
+
function checkoutTaskBranch(taskId, options = {}) {
|
|
14929
|
+
const rootDir = options.rootDir || process.cwd();
|
|
14930
|
+
const locateRes = locateTaskInActiveChanges(taskId, rootDir);
|
|
14931
|
+
if (!locateRes.found || !locateRes.match) {
|
|
14932
|
+
return buildLocateFailureResult(taskId, locateRes);
|
|
14581
14933
|
}
|
|
14582
|
-
|
|
14583
|
-
const
|
|
14584
|
-
const
|
|
14585
|
-
|
|
14586
|
-
const
|
|
14587
|
-
|
|
14934
|
+
const match = locateRes.match;
|
|
14935
|
+
const hierarchy = resolveBranchHierarchy(match, rootDir);
|
|
14936
|
+
const created = [];
|
|
14937
|
+
try {
|
|
14938
|
+
const switched = cascadeBranchCheckout(hierarchy, rootDir, created, options.streamlined);
|
|
14939
|
+
return buildCheckoutSuccessResult(match, hierarchy, created, switched, options.streamlined);
|
|
14940
|
+
} catch (err) {
|
|
14941
|
+
return buildCheckoutErrorResult(match, hierarchy, created, err);
|
|
14588
14942
|
}
|
|
14589
|
-
return records;
|
|
14590
14943
|
}
|
|
14591
14944
|
var AGENT_ENV_MAPPINGS = [
|
|
14592
14945
|
{ envKey: "ANTIGRAVITY_AGENT", defaultModel: "gemini-3.8-flash", source: "antigravity" },
|
|
@@ -14933,219 +15286,6 @@ function installGitHooks(rootDir = process.cwd()) {
|
|
|
14933
15286
|
};
|
|
14934
15287
|
}
|
|
14935
15288
|
}
|
|
14936
|
-
|
|
14937
|
-
// src/reporters/pr-kpis.ts
|
|
14938
|
-
var KPI_SUMMARY_START_TAG = "<!-- AI-SDLC-KPI-SUMMARY-START -->";
|
|
14939
|
-
var KPI_SUMMARY_END_TAG = "<!-- AI-SDLC-KPI-SUMMARY-END -->";
|
|
14940
|
-
function calculateEstimatedCost(promptTokens, completionTokens) {
|
|
14941
|
-
const promptCost = promptTokens / 1e6 * 3;
|
|
14942
|
-
const completionCost = completionTokens / 1e6 * 15;
|
|
14943
|
-
return Math.round((promptCost + completionCost) * 1e4) / 1e4;
|
|
14944
|
-
}
|
|
14945
|
-
function createEmptySummary() {
|
|
14946
|
-
return {
|
|
14947
|
-
commits: 0,
|
|
14948
|
-
linesAdded: 0,
|
|
14949
|
-
linesDeleted: 0,
|
|
14950
|
-
activeTimeSeconds: 0,
|
|
14951
|
-
promptTokens: 0,
|
|
14952
|
-
completionTokens: 0,
|
|
14953
|
-
estimatedCostUsd: 0
|
|
14954
|
-
};
|
|
14955
|
-
}
|
|
14956
|
-
function accumulateRecord(target, record) {
|
|
14957
|
-
target.commits += 1;
|
|
14958
|
-
target.linesAdded += record.linesAdded;
|
|
14959
|
-
target.linesDeleted += record.linesDeleted;
|
|
14960
|
-
target.activeTimeSeconds += record.trailers.activeTimeSeconds;
|
|
14961
|
-
target.promptTokens += record.trailers.promptTokens;
|
|
14962
|
-
target.completionTokens += record.trailers.completionTokens;
|
|
14963
|
-
target.estimatedCostUsd = calculateEstimatedCost(target.promptTokens, target.completionTokens);
|
|
14964
|
-
}
|
|
14965
|
-
function accumulateAuthorSummaries(records, humanSummary, byModel) {
|
|
14966
|
-
let linesAdded = 0;
|
|
14967
|
-
let linesDeleted = 0;
|
|
14968
|
-
let activeTime = 0;
|
|
14969
|
-
let prompt = 0;
|
|
14970
|
-
let completion = 0;
|
|
14971
|
-
let isBugPr = false;
|
|
14972
|
-
for (const record of records) {
|
|
14973
|
-
linesAdded += record.linesAdded;
|
|
14974
|
-
linesDeleted += record.linesDeleted;
|
|
14975
|
-
activeTime += record.trailers.activeTimeSeconds;
|
|
14976
|
-
prompt += record.trailers.promptTokens;
|
|
14977
|
-
completion += record.trailers.completionTokens;
|
|
14978
|
-
if (record.isBugFix) isBugPr = true;
|
|
14979
|
-
if (record.trailers.authorType === "agent") {
|
|
14980
|
-
const modelName = record.trailers.aiModel || "agent-generic";
|
|
14981
|
-
if (!byModel[modelName]) byModel[modelName] = createEmptySummary();
|
|
14982
|
-
accumulateRecord(byModel[modelName], record);
|
|
14983
|
-
} else {
|
|
14984
|
-
accumulateRecord(humanSummary, record);
|
|
14985
|
-
}
|
|
14986
|
-
}
|
|
14987
|
-
return { linesAdded, linesDeleted, activeTime, prompt, completion, isBugPr };
|
|
14988
|
-
}
|
|
14989
|
-
function initTaskKpi(taskId) {
|
|
14990
|
-
return {
|
|
14991
|
-
taskId,
|
|
14992
|
-
commits: 0,
|
|
14993
|
-
fixCommits: 0,
|
|
14994
|
-
linesAdded: 0,
|
|
14995
|
-
linesDeleted: 0,
|
|
14996
|
-
codeChurnPercent: 0,
|
|
14997
|
-
totalTokens: 0,
|
|
14998
|
-
activeTimeSeconds: 0,
|
|
14999
|
-
reworkTokens: 0,
|
|
15000
|
-
reworkTokensPercent: 0,
|
|
15001
|
-
reworkTimeSeconds: 0,
|
|
15002
|
-
reworkTimePercent: 0,
|
|
15003
|
-
isFirstTimeRight: true
|
|
15004
|
-
};
|
|
15005
|
-
}
|
|
15006
|
-
function processTaskCommit(tStat, record) {
|
|
15007
|
-
const recTokens = record.trailers.promptTokens + record.trailers.completionTokens;
|
|
15008
|
-
tStat.commits += 1;
|
|
15009
|
-
tStat.linesAdded += record.linesAdded;
|
|
15010
|
-
tStat.linesDeleted += record.linesDeleted;
|
|
15011
|
-
tStat.totalTokens += recTokens;
|
|
15012
|
-
tStat.activeTimeSeconds += record.trailers.activeTimeSeconds;
|
|
15013
|
-
const isRework = record.isBugFix || /^(fix|bug|remediate|refactor)(([^)]+))?:/i.test((record.subject || "").trim());
|
|
15014
|
-
if (isRework) {
|
|
15015
|
-
tStat.fixCommits += 1;
|
|
15016
|
-
tStat.reworkTokens += recTokens;
|
|
15017
|
-
tStat.reworkTimeSeconds += record.trailers.activeTimeSeconds;
|
|
15018
|
-
}
|
|
15019
|
-
}
|
|
15020
|
-
function accumulateTaskSummaries(records) {
|
|
15021
|
-
const byTask = {};
|
|
15022
|
-
for (const record of records) {
|
|
15023
|
-
const tid = record.trailers.taskId || record.subject.match(/\b(TSK-[0-9A-Za-z_-]+)\b/i)?.[1]?.toUpperCase();
|
|
15024
|
-
if (!tid) continue;
|
|
15025
|
-
if (!byTask[tid]) byTask[tid] = initTaskKpi(tid);
|
|
15026
|
-
processTaskCommit(byTask[tid], record);
|
|
15027
|
-
}
|
|
15028
|
-
for (const t of Object.values(byTask)) {
|
|
15029
|
-
const churn = t.linesAdded > 0 ? t.linesDeleted / t.linesAdded * 100 : 0;
|
|
15030
|
-
t.codeChurnPercent = Math.round(Math.min(churn, 100) * 10) / 10;
|
|
15031
|
-
t.reworkTokensPercent = t.totalTokens > 0 ? Math.round(t.reworkTokens / t.totalTokens * 1e3) / 10 : 0;
|
|
15032
|
-
t.reworkTimePercent = t.activeTimeSeconds > 0 ? Math.round(t.reworkTimeSeconds / t.activeTimeSeconds * 1e3) / 10 : 0;
|
|
15033
|
-
t.isFirstTimeRight = t.fixCommits === 0 && t.codeChurnPercent < 25;
|
|
15034
|
-
}
|
|
15035
|
-
return byTask;
|
|
15036
|
-
}
|
|
15037
|
-
function assemblePrKpiAggregation(baseRef, headRef, records, totals, humanSummary, byModel, byTask) {
|
|
15038
|
-
const totalTokens = totals.prompt + totals.completion;
|
|
15039
|
-
return {
|
|
15040
|
-
baseRef,
|
|
15041
|
-
headRef,
|
|
15042
|
-
totalCommits: records.length,
|
|
15043
|
-
linesAdded: totals.linesAdded,
|
|
15044
|
-
linesDeleted: totals.linesDeleted,
|
|
15045
|
-
totalActiveTimeSeconds: totals.activeTime,
|
|
15046
|
-
totalPromptTokens: totals.prompt,
|
|
15047
|
-
totalCompletionTokens: totals.completion,
|
|
15048
|
-
totalTokens,
|
|
15049
|
-
estimatedCostUsd: calculateEstimatedCost(totals.prompt, totals.completion),
|
|
15050
|
-
humanSummary,
|
|
15051
|
-
byModel,
|
|
15052
|
-
isBugPr: totals.isBugPr,
|
|
15053
|
-
commitRecords: records,
|
|
15054
|
-
byTask
|
|
15055
|
-
};
|
|
15056
|
-
}
|
|
15057
|
-
function aggregateCommitKpiRecords(records, baseRef = "main", headRef = "HEAD") {
|
|
15058
|
-
const humanSummary = createEmptySummary();
|
|
15059
|
-
const byModel = {};
|
|
15060
|
-
const totals = accumulateAuthorSummaries(records, humanSummary, byModel);
|
|
15061
|
-
const byTask = accumulateTaskSummaries(records);
|
|
15062
|
-
return assemblePrKpiAggregation(baseRef, headRef, records, totals, humanSummary, byModel, byTask);
|
|
15063
|
-
}
|
|
15064
|
-
function aggregatePrKpis(baseRef, headRef = "HEAD", options = {}) {
|
|
15065
|
-
const records = extractCommitKpisFromRange(baseRef, headRef, options);
|
|
15066
|
-
return aggregateCommitKpiRecords(records, baseRef, headRef);
|
|
15067
|
-
}
|
|
15068
|
-
function formatMinutes(seconds) {
|
|
15069
|
-
const mins = Math.round(seconds / 60);
|
|
15070
|
-
return mins > 0 ? `${mins} min` : `${seconds}s`;
|
|
15071
|
-
}
|
|
15072
|
-
function buildPrKpiRows(kpi, models) {
|
|
15073
|
-
const human = kpi.humanSummary;
|
|
15074
|
-
const commitCols = models.map((m) => kpi.byModel[m].commits).join(" | ");
|
|
15075
|
-
const linesCols = models.map((m) => `+${kpi.byModel[m].linesAdded} / -${kpi.byModel[m].linesDeleted}`).join(" | ");
|
|
15076
|
-
const timeCols = models.map((m) => formatMinutes(kpi.byModel[m].activeTimeSeconds)).join(" | ");
|
|
15077
|
-
const tokenCols = models.map((m) => `${(kpi.byModel[m].promptTokens + kpi.byModel[m].completionTokens).toLocaleString("en-US")}`).join(" | ");
|
|
15078
|
-
const costCols = models.map((m) => `$${kpi.byModel[m].estimatedCostUsd.toFixed(2)}`).join(" | ");
|
|
15079
|
-
const totalLines = `+${kpi.linesAdded} / -${kpi.linesDeleted}`;
|
|
15080
|
-
const totalTime = formatMinutes(kpi.totalActiveTimeSeconds);
|
|
15081
|
-
const totalTokensStr = `${kpi.totalTokens.toLocaleString("en-US")} tokens`;
|
|
15082
|
-
const totalCostStr = `$${kpi.estimatedCostUsd.toFixed(2)} USD`;
|
|
15083
|
-
return [
|
|
15084
|
-
`| **Commits** | ${human.commits} |${models.length > 0 ? ` ${commitCols} |` : ""} **${kpi.totalCommits}** |`,
|
|
15085
|
-
`| **Lines Added / Deleted** | +${human.linesAdded} / -${human.linesDeleted} |${models.length > 0 ? ` ${linesCols} |` : ""} **${totalLines}** |`,
|
|
15086
|
-
`| **Active Development Time** | ${formatMinutes(human.activeTimeSeconds)} |${models.length > 0 ? ` ${timeCols} |` : ""} **${totalTime}** |`,
|
|
15087
|
-
`| **Tokens Consumed (In+Out)** | 0 |${models.length > 0 ? ` ${tokenCols} |` : ""} **${totalTokensStr}** |`,
|
|
15088
|
-
`| **Estimated Cost (USD)** | \u2014 (Human labor) |${models.length > 0 ? ` ${costCols} |` : ""} **${totalCostStr}** |`
|
|
15089
|
-
];
|
|
15090
|
-
}
|
|
15091
|
-
function formatTaskKpiRows(byTask) {
|
|
15092
|
-
const taskIds = Object.keys(byTask || {});
|
|
15093
|
-
if (taskIds.length === 0) return [];
|
|
15094
|
-
const rows = [
|
|
15095
|
-
"",
|
|
15096
|
-
"#### \u{1F4CB} Task-Level Rework & Code Churn Breakdown",
|
|
15097
|
-
"",
|
|
15098
|
-
"| Task ID | Commits (Total / Fix) | Lines (+ / -) | Code Churn % | Rework Tokens % | Rework Time % | Status |",
|
|
15099
|
-
"| :--- | :---: | :---: | :---: | :---: | :---: | :---: |"
|
|
15100
|
-
];
|
|
15101
|
-
for (const tid of taskIds) {
|
|
15102
|
-
const t = byTask[tid];
|
|
15103
|
-
const statusLabel = t.isFirstTimeRight ? "\u2714 First-Time-Right" : `\u26A0 ${t.fixCommits} rework commit${t.fixCommits === 1 ? "" : "s"}`;
|
|
15104
|
-
rows.push(
|
|
15105
|
-
`| \`${t.taskId}\` | ${t.commits} (${t.fixCommits} fix) | +${t.linesAdded} / -${t.linesDeleted} | ${t.codeChurnPercent}% | ${t.reworkTokensPercent}% | ${t.reworkTimePercent}% | ${statusLabel} |`
|
|
15106
|
-
);
|
|
15107
|
-
}
|
|
15108
|
-
return rows;
|
|
15109
|
-
}
|
|
15110
|
-
function formatPrKpiMarkdown(kpi) {
|
|
15111
|
-
const models = Object.keys(kpi.byModel);
|
|
15112
|
-
const modelHeaders = models.map((m) => `Agent (${m})`).join(" | ");
|
|
15113
|
-
const modelSeparator = models.map(() => ":---:").join(" | ");
|
|
15114
|
-
const headers = `| Metric | Human |${models.length > 0 ? ` ${modelHeaders} |` : ""} Total PR |`;
|
|
15115
|
-
const sep5 = `| :--- | :---: |${models.length > 0 ? ` ${modelSeparator} |` : ""} :---: |`;
|
|
15116
|
-
const rows = buildPrKpiRows(kpi, models);
|
|
15117
|
-
const taskRowsList = formatTaskKpiRows(kpi.byTask);
|
|
15118
|
-
return [
|
|
15119
|
-
KPI_SUMMARY_START_TAG,
|
|
15120
|
-
"### \u{1F4CA} AI-SDLC: Aggregated PR KPI Summary",
|
|
15121
|
-
"",
|
|
15122
|
-
headers,
|
|
15123
|
-
sep5,
|
|
15124
|
-
...rows,
|
|
15125
|
-
...taskRowsList,
|
|
15126
|
-
"",
|
|
15127
|
-
`> **Branch Attribution:** ${kpi.isBugPr ? "\u{1F6A8} *Defect Fix / Bugfix*" : "\u2728 *New Feature*"} (Range: \`${kpi.baseRef}..${kpi.headRef}\`)`,
|
|
15128
|
-
KPI_SUMMARY_END_TAG
|
|
15129
|
-
].join("\n");
|
|
15130
|
-
}
|
|
15131
|
-
function injectKpisIntoPrBody(originalBody, kpiMarkdown) {
|
|
15132
|
-
const body = originalBody || "";
|
|
15133
|
-
const startIndex = body.indexOf(KPI_SUMMARY_START_TAG);
|
|
15134
|
-
const endIndex = body.indexOf(KPI_SUMMARY_END_TAG);
|
|
15135
|
-
if (startIndex !== -1 && endIndex !== -1) {
|
|
15136
|
-
const before = body.slice(0, startIndex);
|
|
15137
|
-
const after = body.slice(endIndex + KPI_SUMMARY_END_TAG.length);
|
|
15138
|
-
return `${before.trimEnd()}
|
|
15139
|
-
|
|
15140
|
-
${kpiMarkdown}
|
|
15141
|
-
|
|
15142
|
-
${after.trimStart()}`.trim();
|
|
15143
|
-
}
|
|
15144
|
-
return `${body.trimEnd()}
|
|
15145
|
-
|
|
15146
|
-
${kpiMarkdown}
|
|
15147
|
-
`;
|
|
15148
|
-
}
|
|
15149
15289
|
function calculateCost(prompt, completion) {
|
|
15150
15290
|
const promptCost = prompt / 1e6 * 3;
|
|
15151
15291
|
const completionCost = completion / 1e6 * 15;
|
|
@@ -17773,16 +17913,35 @@ function resolveBranchFilterKeys(metricsData) {
|
|
|
17773
17913
|
}
|
|
17774
17914
|
return keys;
|
|
17775
17915
|
}
|
|
17916
|
+
function renderAgentKpisSectionHtml(kpis) {
|
|
17917
|
+
if (!kpis) return "";
|
|
17918
|
+
return [
|
|
17919
|
+
`<div class="chart-container" id="agent-performance-kpis">`,
|
|
17920
|
+
` <h3>AI Agent Performance KPIs (SWE-bench & DORA AI)</h3>`,
|
|
17921
|
+
` <p style="color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem;">Tasks: <strong>${kpis.totalTasks}</strong> | Commits: <strong>${kpis.totalCommits}</strong> | Audited Trailers: <strong>${kpis.auditedCommitsPercent}%</strong></p>`,
|
|
17922
|
+
` <div class="grid-cards">`,
|
|
17923
|
+
` <div class="metric-card"><span class="title">First-Pass Yield (FPY)</span><span class="value">${kpis.firstPassYieldPercent}%</span><span class="subtitle">Target ≥ 80%</span></div>`,
|
|
17924
|
+
` <div class="metric-card"><span class="title">Rework Loops / Task</span><span class="value">${kpis.reworkLoopsPerTask}</span><span class="subtitle">Target ≤ 0.5</span></div>`,
|
|
17925
|
+
` <div class="metric-card"><span class="title">Spec Adherence Index</span><span class="value">${kpis.specificationAdherenceIndex}%</span><span class="subtitle">Target ≥ 95%</span></div>`,
|
|
17926
|
+
` <div class="metric-card"><span class="title">Human Takeover Rate</span><span class="value">${kpis.humanTakeoverRatePercent}%</span><span class="subtitle">Target ≤ 15%</span></div>`,
|
|
17927
|
+
` <div class="metric-card"><span class="title">Token Cost Efficiency</span><span class="value">${kpis.tokenCostEfficiency.toLocaleString("en-US")}</span><span class="subtitle">tokens / CC</span></div>`,
|
|
17928
|
+
` <div class="metric-card"><span class="title">Architecture Drift Rate</span><span class="value">${kpis.architectureDriftRatePercent}%</span><span class="subtitle">Target 0%</span></div>`,
|
|
17929
|
+
` </div>`,
|
|
17930
|
+
`</div>`
|
|
17931
|
+
].join("\n");
|
|
17932
|
+
}
|
|
17776
17933
|
function renderKpisTabHtml(metricsData) {
|
|
17777
17934
|
const displayKpi = metricsData.totalTelemetry || metricsData.activePrKpi;
|
|
17778
17935
|
const branchKeys = resolveBranchFilterKeys(metricsData);
|
|
17779
17936
|
const telemetryHtml = displayKpi ? renderActiveTelemetrySection(displayKpi, "Totalizador", branchKeys, metricsData.activeBranch) : '<p style="color: var(--text-muted); font-size: 0.85rem;">No telemetry recorded yet in this workspace.</p>';
|
|
17937
|
+
const agentKpisHtml = renderAgentKpisSectionHtml(metricsData.agentKpis);
|
|
17780
17938
|
const historyContent = renderHistoricalKpisTable(metricsData.history);
|
|
17781
17939
|
return [
|
|
17782
17940
|
` <div id="tab-kpis" class="tab-panel">`,
|
|
17783
17941
|
` <div class="content-container">`,
|
|
17784
17942
|
` <h2>Active Telemetry and KPI History</h2>`,
|
|
17785
17943
|
telemetryHtml,
|
|
17944
|
+
agentKpisHtml,
|
|
17786
17945
|
` <div class="chart-container"><h3>Consolidated Release History</h3>${historyContent}</div>`,
|
|
17787
17946
|
` </div>`,
|
|
17788
17947
|
` </div>`
|
|
@@ -18144,6 +18303,12 @@ function collectDashboardMetrics(rootDir) {
|
|
|
18144
18303
|
history,
|
|
18145
18304
|
activePrKpi
|
|
18146
18305
|
);
|
|
18306
|
+
const agentKpis = computeAgentPerformanceKpis({
|
|
18307
|
+
records: totalTelemetry?.commitRecords || [],
|
|
18308
|
+
gateResult: gate,
|
|
18309
|
+
coverageResult: cov,
|
|
18310
|
+
traceabilityResult: trace
|
|
18311
|
+
});
|
|
18147
18312
|
return {
|
|
18148
18313
|
gate,
|
|
18149
18314
|
gov,
|
|
@@ -18156,6 +18321,7 @@ function collectDashboardMetrics(rootDir) {
|
|
|
18156
18321
|
activeBranch,
|
|
18157
18322
|
branchTelemetries,
|
|
18158
18323
|
totalTelemetry,
|
|
18324
|
+
agentKpis,
|
|
18159
18325
|
complianceBundle
|
|
18160
18326
|
};
|
|
18161
18327
|
}
|
|
@@ -24238,6 +24404,6 @@ var MigrationService = class {
|
|
|
24238
24404
|
}
|
|
24239
24405
|
};
|
|
24240
24406
|
|
|
24241
|
-
export { ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, BRANCH_PATTERNS, BddStepRegistry, BranchSafetyCheck, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, DiffDetector, DlpSanitizer, DoctorOrchestrator, DoctorReporter, DoctorService, FileSystemJailAdapter, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, GitHooksHealthCheck, InTotoAttestationBuilder, JAVA_PMD_RULESET_XML, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, MigrationOrchestrator, MigrationReporter, MigrationService, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, PolicyRatchetEnforcer, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, RegulatoryControlMapper, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK2 as SEVERITY_RANK, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, SafeProcessRunnerAdapter, SarifIngestionError, ScaSbomError, SchemasPdacHealthCheck, SecurityToolsHealthCheck, SignatureReadinessCheck, SpecKitAdapter, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, TimestampedBackupManagerAdapter, ToolchainHealthCheck, TransactionManager, UNIT_TEST_SUFFIXES, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compileTestPatterns, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, inferArtifactTypeFromId, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact2 as isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify2 as slugify, spawnTrustedBinary, stripMaskingCalls, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|
|
24407
|
+
export { ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, BRANCH_PATTERNS, BddStepRegistry, BranchSafetyCheck, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, DiffDetector, DlpSanitizer, DoctorOrchestrator, DoctorReporter, DoctorService, FileSystemJailAdapter, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, GitHooksHealthCheck, InTotoAttestationBuilder, JAVA_PMD_RULESET_XML, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, MigrationOrchestrator, MigrationReporter, MigrationService, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, PolicyRatchetEnforcer, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, RegulatoryControlMapper, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK2 as SEVERITY_RANK, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, SafeProcessRunnerAdapter, SarifIngestionError, ScaSbomError, SchemasPdacHealthCheck, SecurityToolsHealthCheck, SignatureReadinessCheck, SpecKitAdapter, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, TimestampedBackupManagerAdapter, ToolchainHealthCheck, TransactionManager, UNIT_TEST_SUFFIXES, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compileTestPatterns, computeAgentPerformanceKpis, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatAgentKpisMarkdownSection, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, inferArtifactTypeFromId, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact2 as isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify2 as slugify, spawnTrustedBinary, stripMaskingCalls, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|
|
24242
24408
|
//# sourceMappingURL=index.js.map
|
|
24243
24409
|
//# sourceMappingURL=index.js.map
|