omnius 1.0.911 → 1.0.913
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 +24 -5
- package/npm-shrinkwrap.json +5 -5
- 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: 39009439 bytes
|
|
4
|
+
sha256: a89df0dcb9a1e6ca311f5acd3c55e72f3b8320eaa233fa867a3200edbf2a3610
|
package/dist/library.js
CHANGED
|
@@ -349913,7 +349913,9 @@ function recordCompletionEvidence(ledger, evidence) {
|
|
|
349913
349913
|
...externalEffectReceipt ? { externalEffectReceipt } : {},
|
|
349914
349914
|
...verificationReceipt ? { verificationReceipt } : {},
|
|
349915
349915
|
...verificationReceipts?.length ? { verificationReceipts } : {},
|
|
349916
|
-
...externalBlocker ? { externalBlocker } : {}
|
|
349916
|
+
...externalBlocker ? { externalBlocker } : {},
|
|
349917
|
+
// Only a failure can be a read-only attempt; a success is an observation.
|
|
349918
|
+
...evidence.readOnlyAttempt === true && evidence.success === false ? { readOnlyAttempt: true } : {}
|
|
349917
349919
|
};
|
|
349918
349920
|
return {
|
|
349919
349921
|
...ledger,
|
|
@@ -349948,7 +349950,8 @@ function recordToolEvidence(ledger, input) {
|
|
|
349948
349950
|
verificationReceipt: input.verificationReceipt,
|
|
349949
349951
|
verificationReceipts: input.verificationReceipts,
|
|
349950
349952
|
externalBlocker: input.externalBlocker,
|
|
349951
|
-
workOperation: input.workOperation
|
|
349953
|
+
workOperation: input.workOperation,
|
|
349954
|
+
...input.readOnlyAttempt === true ? { readOnlyAttempt: true } : {}
|
|
349952
349955
|
});
|
|
349953
349956
|
}
|
|
349954
349957
|
function addCompletionClaims(ledger, claims) {
|
|
@@ -365519,7 +365522,7 @@ function completionReadinessAllowsExpectedEffectReply(snapshot) {
|
|
|
365519
365522
|
return unsatisfied.every((item) => item.kind === "expected_effect" && item.sourceId !== "verification" && item.sourceId !== "delivery");
|
|
365520
365523
|
}
|
|
365521
365524
|
function completionReadinessAllowsPendingProviderDelivery(snapshot) {
|
|
365522
|
-
return Boolean(snapshot && unrecoveredFailedEvidence(snapshot).length === 0 && completionReadinessHasOnlyPendingProviderObligations(snapshot));
|
|
365525
|
+
return Boolean(snapshot && (snapshot.deliveryBlockingFailedEvidenceIds ?? unrecoveredFailedEvidence(snapshot)).length === 0 && completionReadinessHasOnlyPendingProviderObligations(snapshot));
|
|
365523
365526
|
}
|
|
365524
365527
|
function unrecoveredFailedEvidence(snapshot) {
|
|
365525
365528
|
return snapshot.unrecoveredFailedEvidenceIds ?? snapshot.failedEvidenceIds;
|
|
@@ -366077,6 +366080,9 @@ function buildCompletionObligations(input) {
|
|
|
366077
366080
|
obligationId: item.id,
|
|
366078
366081
|
evidenceIds: [...item.evidenceIds]
|
|
366079
366082
|
}));
|
|
366083
|
+
const unrecoveredEvidence = 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));
|
|
366084
|
+
const unrecovered = uniqueSorted(unrecoveredEvidence.map((item) => item.id));
|
|
366085
|
+
const deliveryBlocking = uniqueSorted(unrecoveredEvidence.filter((item) => item.readOnlyAttempt !== true || Boolean(item.criterionIds?.length)).map((item) => item.id));
|
|
366080
366086
|
const uniqueDeliveries = new Map(deliveryReceipts.map((receipt) => [
|
|
366081
366087
|
`${receipt.provider}\0${receipt.receiptId}`,
|
|
366082
366088
|
receipt
|
|
@@ -366092,7 +366098,8 @@ function buildCompletionObligations(input) {
|
|
|
366092
366098
|
unresolvedAuthoritativeCardIds: uniqueSorted(unresolvedAuthoritativeCardIds),
|
|
366093
366099
|
unmetExpectedEffects: [...unmetExpectedEffects].sort(),
|
|
366094
366100
|
failedEvidenceIds: uniqueSorted(evidence.filter((item) => item.success === false).map((item) => item.id)),
|
|
366095
|
-
unrecoveredFailedEvidenceIds:
|
|
366101
|
+
unrecoveredFailedEvidenceIds: unrecovered,
|
|
366102
|
+
...deliveryBlocking.length !== unrecovered.length ? { deliveryBlockingFailedEvidenceIds: deliveryBlocking } : {}
|
|
366096
366103
|
};
|
|
366097
366104
|
}
|
|
366098
366105
|
function readinessStateHash(input, built, claims) {
|
|
@@ -366111,7 +366118,8 @@ function readinessStateHash(input, built, claims) {
|
|
|
366111
366118
|
latestVerifierReceipts: built.latestVerifierReceipts,
|
|
366112
366119
|
deliveryReceipts: built.deliveryReceipts,
|
|
366113
366120
|
failedEvidenceIds: built.failedEvidenceIds,
|
|
366114
|
-
unrecoveredFailedEvidenceIds: built.unrecoveredFailedEvidenceIds
|
|
366121
|
+
unrecoveredFailedEvidenceIds: built.unrecoveredFailedEvidenceIds,
|
|
366122
|
+
...built.deliveryBlockingFailedEvidenceIds ? { deliveryBlockingFailedEvidenceIds: built.deliveryBlockingFailedEvidenceIds } : {}
|
|
366115
366123
|
});
|
|
366116
366124
|
}
|
|
366117
366125
|
function receiptDigest(input) {
|
|
@@ -366311,6 +366319,7 @@ function reconcileCompletionReadiness(input) {
|
|
|
366311
366319
|
unresolvedIds,
|
|
366312
366320
|
failedEvidenceIds: built.failedEvidenceIds,
|
|
366313
366321
|
unrecoveredFailedEvidenceIds: built.unrecoveredFailedEvidenceIds,
|
|
366322
|
+
...built.deliveryBlockingFailedEvidenceIds ? { deliveryBlockingFailedEvidenceIds: built.deliveryBlockingFailedEvidenceIds } : {},
|
|
366314
366323
|
blockerIds,
|
|
366315
366324
|
intrinsicReady,
|
|
366316
366325
|
successfulCompletionAllowed,
|
|
@@ -401409,6 +401418,16 @@ ${modelVisible}` : modelVisible || result.error || displayOutput || "";
|
|
|
401409
401418
|
outputPreview: (input.outputPreview ?? this._toolEvidencePreview(input.result, void 0, 1200, input.toolName)).toString().slice(0, input.toolName === "audio_analyze" || input.toolName === "video_understand" ? 1200 : 500),
|
|
401410
401419
|
argsKey: input.argsKey.slice(0, 300),
|
|
401411
401420
|
targetPaths: evidenceTargetPaths2,
|
|
401421
|
+
// The tool's own declaration for this exact call, as used for its
|
|
401422
|
+
// interruption ticket. Runtime blocks and anything with an effect
|
|
401423
|
+
// receipt are never read-only attempts.
|
|
401424
|
+
...input.result.success === false && input.result.runtimeAuthored !== true && !realFileMutation && !deliveryReceipt && !externalEffectReceipt && input.args && (() => {
|
|
401425
|
+
try {
|
|
401426
|
+
return this.lookupRegisteredTool(input.toolName)?.tool.isReadOnly?.(input.args) === true;
|
|
401427
|
+
} catch {
|
|
401428
|
+
return false;
|
|
401429
|
+
}
|
|
401430
|
+
})() ? { readOnlyAttempt: true } : {},
|
|
401412
401431
|
role: (verificationOnly ? "verification" : input.result.completionEvidenceRole) ?? (deliveryReceipt ? "delivery" : input.result.alreadyApplied === true ? "mutation" : realFileMutation ? "mutation" : input.result.runtimeAuthored === true && !shellVerification ? "blocker" : shellVerification ? "verification" : input.result.success === true ? "observation" : this._conversationReportEvidence ? "blocker" : void 0),
|
|
401413
401432
|
family: input.result.completionEvidenceFamily ?? (input.result.runtimeAuthored === true && !shellVerification ? "runtime_control" : shellVerification ? shellVerificationFamily : void 0),
|
|
401414
401433
|
verificationImpact: input.result.completionVerificationImpact ?? (input.result.alreadyApplied === true ? "neutral" : realFileMutation ? "invalidates" : void 0),
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.913",
|
|
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.913",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
|
@@ -5640,9 +5640,9 @@
|
|
|
5640
5640
|
}
|
|
5641
5641
|
},
|
|
5642
5642
|
"node_modules/cborg": {
|
|
5643
|
-
"version": "6.2.
|
|
5644
|
-
"resolved": "https://registry.npmjs.org/cborg/-/cborg-6.2.
|
|
5645
|
-
"integrity": "sha512-
|
|
5643
|
+
"version": "6.2.1",
|
|
5644
|
+
"resolved": "https://registry.npmjs.org/cborg/-/cborg-6.2.1.tgz",
|
|
5645
|
+
"integrity": "sha512-DwiF3Jd5RW6kJuTQMzQb/sdZD03utp15EcQNOMTvE/ZYCdDPzETsGOY5lj8imKxbsEuYvOzcMSiKLiT4C2/2Lw==",
|
|
5646
5646
|
"license": "Apache-2.0",
|
|
5647
5647
|
"bin": {
|
|
5648
5648
|
"cborg": "lib/bin.js"
|
package/package.json
CHANGED