@integrity-labs/agt-cli 0.28.602 → 0.28.604
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.
|
@@ -6030,7 +6030,7 @@ function exchangeFailureKind(err) {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
|
|
6032
6032
|
// src/lib/api-client.ts
|
|
6033
|
-
var agtCliVersion = true ? "0.28.
|
|
6033
|
+
var agtCliVersion = true ? "0.28.604" : "dev";
|
|
6034
6034
|
var lastConfigHash = null;
|
|
6035
6035
|
function setConfigHash(hash) {
|
|
6036
6036
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8046,6 +8046,18 @@ function transientReasonFor(text) {
|
|
|
8046
8046
|
}
|
|
8047
8047
|
return null;
|
|
8048
8048
|
}
|
|
8049
|
+
var DID_NOT_RUN_SIGNATURES = [
|
|
8050
|
+
{
|
|
8051
|
+
re: /the real \S+ binary is not on PATH|only the Augmented shim is/i,
|
|
8052
|
+
reason: "the Augmented credential shim ran but could not find the real binary, so nothing was probed"
|
|
8053
|
+
}
|
|
8054
|
+
];
|
|
8055
|
+
function didNotRunReasonFor(text) {
|
|
8056
|
+
for (const { re, reason } of DID_NOT_RUN_SIGNATURES) {
|
|
8057
|
+
if (re.test(text)) return reason;
|
|
8058
|
+
}
|
|
8059
|
+
return null;
|
|
8060
|
+
}
|
|
8049
8061
|
var CREDENTIAL_SHAPED = /\b(gh[pousr]_[A-Za-z0-9]{16,}|github_pat_[A-Za-z0-9_]{20,}|xox[abprs]-[A-Za-z0-9-]{10,}|sk-[A-Za-z0-9]{20,}|eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}|AKIA[0-9A-Z]{16})\b/g;
|
|
8050
8062
|
var MAX_MESSAGE_CHARS = 200;
|
|
8051
8063
|
function redactAndBound(line) {
|
|
@@ -8088,6 +8100,14 @@ function runCliProbe(binary, args, opts = {}) {
|
|
|
8088
8100
|
const diagnostic = `${stderr ?? ""}
|
|
8089
8101
|
${stdout ?? ""}
|
|
8090
8102
|
${e.message}`;
|
|
8103
|
+
const didNotRun = didNotRunReasonFor(diagnostic);
|
|
8104
|
+
if (didNotRun) {
|
|
8105
|
+
resolve({
|
|
8106
|
+
status: "unverified",
|
|
8107
|
+
message: `${binary} probe did not run \u2014 ${didNotRun}. This is NOT a verdict about the integration: ${firstMeaningfulLine(stderr, stdout, e.message)}`
|
|
8108
|
+
});
|
|
8109
|
+
return;
|
|
8110
|
+
}
|
|
8091
8111
|
const transient = transientReasonFor(diagnostic);
|
|
8092
8112
|
if (transient) {
|
|
8093
8113
|
resolve({
|
|
@@ -9485,4 +9505,4 @@ export {
|
|
|
9485
9505
|
managerInstallSystemUnitCommand,
|
|
9486
9506
|
managerUninstallSystemUnitCommand
|
|
9487
9507
|
};
|
|
9488
|
-
//# sourceMappingURL=chunk-
|
|
9508
|
+
//# sourceMappingURL=chunk-TLVS32O4.js.map
|