omnius 1.0.906 → 1.0.908
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 +2 -2
- package/dist/library.js +6 -1
- package/dist/update-worker-runtime.js +31 -8
- package/npm-shrinkwrap.json +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39002930 bytes
|
|
4
|
+
sha256: 1d3d3c69142f38d8e36c0ff991bf28d8d1e2834295b53c0689d2b045c6024e07
|
package/dist/library.js
CHANGED
|
@@ -365594,6 +365594,11 @@ function requiredId(value, name) {
|
|
|
365594
365594
|
throw new TypeError(`${name} must be a non-empty string`);
|
|
365595
365595
|
return id5;
|
|
365596
365596
|
}
|
|
365597
|
+
function failedProbeOfObservedObjectiveTarget(failed, evidence) {
|
|
365598
|
+
if (failed.criterionIds?.length || !failed.toolName || !failed.targetPaths?.length)
|
|
365599
|
+
return false;
|
|
365600
|
+
return failed.targetPaths.every((target2) => evidence.some((item) => item.success === true && item.role === "observation" && Boolean(item.toolName) && item.toolName !== failed.toolName && Boolean(item.criterionIds?.length) && item.targetPaths?.includes(target2)));
|
|
365601
|
+
}
|
|
365597
365602
|
function uniqueSorted(values) {
|
|
365598
365603
|
return [
|
|
365599
365604
|
...new Set([...values].map((value) => bounded2(value, 500)).filter(Boolean))
|
|
@@ -366087,7 +366092,7 @@ function buildCompletionObligations(input) {
|
|
|
366087
366092
|
unresolvedAuthoritativeCardIds: uniqueSorted(unresolvedAuthoritativeCardIds),
|
|
366088
366093
|
unmetExpectedEffects: [...unmetExpectedEffects].sort(),
|
|
366089
366094
|
failedEvidenceIds: uniqueSorted(evidence.filter((item) => item.success === false).map((item) => item.id)),
|
|
366090
|
-
unrecoveredFailedEvidenceIds: uniqueSorted(evidence.filter((item, index) => item.success === false && !evidence.slice(index + 1).some((later) => later.success === true && later.role === "observation" && Boolean(item.toolName) && later.toolName === item.toolName)).map((item) => item.id))
|
|
366095
|
+
unrecoveredFailedEvidenceIds: uniqueSorted(evidence.filter((item, index) => item.success === false && !evidence.slice(index + 1).some((later) => later.success === true && later.role === "observation" && Boolean(item.toolName) && later.toolName === item.toolName) && !failedProbeOfObservedObjectiveTarget(item, evidence)).map((item) => item.id))
|
|
366091
366096
|
};
|
|
366092
366097
|
}
|
|
366093
366098
|
function readinessStateHash(input, built, claims) {
|
|
@@ -303517,6 +303517,19 @@ function provedAbsent(owner) {
|
|
|
303517
303517
|
const current = processIdentity(owner.pid);
|
|
303518
303518
|
return Boolean(owner.process_identity && current && owner.process_identity !== current);
|
|
303519
303519
|
}
|
|
303520
|
+
var ABANDONED_EMPTY_GUARD_MS = 6e4;
|
|
303521
|
+
function removeAbandonedEmptyGuard(guardPath) {
|
|
303522
|
+
try {
|
|
303523
|
+
const metadata = lstatSync(guardPath);
|
|
303524
|
+
if (!metadata.isFile() || metadata.size !== 0 || metadata.nlink !== 1 || metadata.uid !== process.getuid?.() || (metadata.mode & 63) !== 0 || Date.now() - metadata.mtimeMs < ABANDONED_EMPTY_GUARD_MS) return false;
|
|
303525
|
+
const current = lstatSync(guardPath);
|
|
303526
|
+
if (!sameIdentity(metadata, current) || current.size !== 0) return false;
|
|
303527
|
+
unlinkSync3(guardPath);
|
|
303528
|
+
return true;
|
|
303529
|
+
} catch (error) {
|
|
303530
|
+
return error.code === "ENOENT";
|
|
303531
|
+
}
|
|
303532
|
+
}
|
|
303520
303533
|
async function acquireNpmInstallLease(modulesRoot, options = {}) {
|
|
303521
303534
|
assertNotCancelled(options.signal);
|
|
303522
303535
|
if (!isAbsolute7(modulesRoot) || /[\x00-\x1f\x7f]/.test(modulesRoot) || options.operationId !== void 0 && !/^[a-zA-Z0-9_-]{1,128}$/.test(options.operationId)) throw new Error("Invalid npm install scope.");
|
|
@@ -303531,24 +303544,34 @@ async function acquireNpmInstallLease(modulesRoot, options = {}) {
|
|
|
303531
303544
|
assertOwnedDirectory(current, "global modules root");
|
|
303532
303545
|
if (!sameIdentity(rootMetadata, current)) throw new Error("npm modules root changed; no installer may proceed.");
|
|
303533
303546
|
};
|
|
303534
|
-
const
|
|
303535
|
-
assertRoot();
|
|
303536
|
-
let fd;
|
|
303547
|
+
const openGuard = () => {
|
|
303537
303548
|
try {
|
|
303538
|
-
|
|
303549
|
+
return openSync3(guardPath, constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | constants.O_NOFOLLOW, 384);
|
|
303539
303550
|
} catch (error) {
|
|
303540
|
-
if (error.code
|
|
303541
|
-
|
|
303551
|
+
if (error.code !== "EEXIST") throw error;
|
|
303552
|
+
if (!removeAbandonedEmptyGuard(guardPath))
|
|
303553
|
+
throw new NpmInstallBusyError("npm installer ownership is being checked, or its short guard was interrupted; no guard was stolen.");
|
|
303554
|
+
return openGuard();
|
|
303542
303555
|
}
|
|
303556
|
+
};
|
|
303557
|
+
const withGuard = (action) => {
|
|
303558
|
+
assertRoot();
|
|
303559
|
+
const fd = openGuard();
|
|
303543
303560
|
const metadata = fstatSync(fd), guardNonce = randomUUID2();
|
|
303561
|
+
let recorded = false;
|
|
303544
303562
|
try {
|
|
303545
303563
|
writeFileSync5(fd, JSON.stringify({ schema_version: 1, nonce: guardNonce, pid: process.pid, process_identity: processIdentity(process.pid) }));
|
|
303546
303564
|
fsyncSync(fd);
|
|
303565
|
+
recorded = true;
|
|
303547
303566
|
return action();
|
|
303548
303567
|
} finally {
|
|
303549
303568
|
try {
|
|
303550
|
-
|
|
303551
|
-
|
|
303569
|
+
if (!recorded) {
|
|
303570
|
+
if (sameIdentity(metadata, lstatSync(guardPath))) unlinkSync3(guardPath);
|
|
303571
|
+
} else {
|
|
303572
|
+
const current = readInstallOwner(guardPath);
|
|
303573
|
+
if (sameIdentity(metadata, current.metadata) && current.owner.nonce === guardNonce) unlinkSync3(guardPath);
|
|
303574
|
+
}
|
|
303552
303575
|
} finally {
|
|
303553
303576
|
closeSync3(fd);
|
|
303554
303577
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.908",
|
|
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.908",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
"node_modules/@borewit/text-codec": {
|
|
174
|
-
"version": "0.2.
|
|
175
|
-
"resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.
|
|
176
|
-
"integrity": "sha512-
|
|
174
|
+
"version": "0.2.3",
|
|
175
|
+
"resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.3.tgz",
|
|
176
|
+
"integrity": "sha512-49CycTz1aAZmvFcwkeFyhud1HUmRIB5Tabf7ALV+VA4Iu85MTfz2cUwzPagMFAdVBvrWdkCxG67I30tUwwpKsw==",
|
|
177
177
|
"license": "MIT",
|
|
178
178
|
"funding": {
|
|
179
179
|
"type": "github",
|
|
@@ -5640,9 +5640,9 @@
|
|
|
5640
5640
|
}
|
|
5641
5641
|
},
|
|
5642
5642
|
"node_modules/cborg": {
|
|
5643
|
-
"version": "6.
|
|
5644
|
-
"resolved": "https://registry.npmjs.org/cborg/-/cborg-6.
|
|
5645
|
-
"integrity": "sha512-
|
|
5643
|
+
"version": "6.2.0",
|
|
5644
|
+
"resolved": "https://registry.npmjs.org/cborg/-/cborg-6.2.0.tgz",
|
|
5645
|
+
"integrity": "sha512-90BdAPd5EUayc7Cj9+xD5d+TfgQiaQ3yoroUs4hmrm0ieupQlVB+SXVnYORidh74YKng1oliynPYxeEroYgimg==",
|
|
5646
5646
|
"license": "Apache-2.0",
|
|
5647
5647
|
"bin": {
|
|
5648
5648
|
"cborg": "lib/bin.js"
|
package/package.json
CHANGED