omnius 1.0.453 → 1.0.454
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/dist/index.js +31 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -574333,6 +574333,10 @@ function updateGlobalIndex(paths, runIndex) {
|
|
|
574333
574333
|
schemaVersion: 1,
|
|
574334
574334
|
updatedAt: now2,
|
|
574335
574335
|
root: paths.root,
|
|
574336
|
+
runCount: 0,
|
|
574337
|
+
latestRun: null,
|
|
574338
|
+
diagnoses: {},
|
|
574339
|
+
anchors: [],
|
|
574336
574340
|
runs: []
|
|
574337
574341
|
};
|
|
574338
574342
|
next.updatedAt = now2;
|
|
@@ -574352,8 +574356,35 @@ function updateGlobalIndex(paths, runIndex) {
|
|
|
574352
574356
|
entry,
|
|
574353
574357
|
...next.runs.filter((item) => item.runId !== runIndex.runId)
|
|
574354
574358
|
].slice(0, 100);
|
|
574359
|
+
next.runCount = next.runs.length;
|
|
574360
|
+
next.latestRun = {
|
|
574361
|
+
runId: runIndex.runId,
|
|
574362
|
+
sessionId: runIndex.sessionId,
|
|
574363
|
+
cwd: runIndex.cwd,
|
|
574364
|
+
updatedAt: runIndex.updatedAt,
|
|
574365
|
+
eventCount: runIndex.summary.eventCount,
|
|
574366
|
+
failureCount: runIndex.summary.failureCount,
|
|
574367
|
+
focusBlockCount: runIndex.summary.focusBlockCount,
|
|
574368
|
+
suspiciousShellCount: runIndex.summary.suspiciousShellCount,
|
|
574369
|
+
readmePath: runIndex.readmePath,
|
|
574370
|
+
indexPath: runIndex.indexPath
|
|
574371
|
+
};
|
|
574372
|
+
next.diagnoses = aggregateGlobalDiagnoses(next.runs);
|
|
574373
|
+
next.anchors = buildAnchors(runIndex.cwd, runIndex.runId, paths);
|
|
574355
574374
|
writeFileSync49(paths.globalIndexPath, JSON.stringify(next, null, 2), "utf-8");
|
|
574356
574375
|
}
|
|
574376
|
+
function aggregateGlobalDiagnoses(runs) {
|
|
574377
|
+
const totals = {};
|
|
574378
|
+
for (const run2 of runs) {
|
|
574379
|
+
const index = readJson2(run2.indexPath);
|
|
574380
|
+
if (!index?.diagnoses)
|
|
574381
|
+
continue;
|
|
574382
|
+
for (const [name10, count] of Object.entries(index.diagnoses)) {
|
|
574383
|
+
totals[name10] = (totals[name10] ?? 0) + count;
|
|
574384
|
+
}
|
|
574385
|
+
}
|
|
574386
|
+
return Object.fromEntries(Object.entries(totals).sort((a2, b) => b[1] - a2[1] || a2[0].localeCompare(b[0])));
|
|
574387
|
+
}
|
|
574357
574388
|
function buildAnchors(cwd4, runId, paths, extra = []) {
|
|
574358
574389
|
const omniusDir = join112(cwd4, ".omnius");
|
|
574359
574390
|
const raw = [
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.454",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.454",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED