@integrity-labs/agt-cli 0.28.601 → 0.28.603
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/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-SCST4W6W.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
46
|
} from "../chunk-XTLKPF2A.js";
|
|
@@ -4910,7 +4910,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4910
4910
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4911
4911
|
import chalk18 from "chalk";
|
|
4912
4912
|
import ora16 from "ora";
|
|
4913
|
-
var cliVersion = true ? "0.28.
|
|
4913
|
+
var cliVersion = true ? "0.28.603" : "dev";
|
|
4914
4914
|
async function fetchLatestVersion() {
|
|
4915
4915
|
const host2 = getHost();
|
|
4916
4916
|
if (!host2) return null;
|
|
@@ -6090,7 +6090,7 @@ function handleError(err) {
|
|
|
6090
6090
|
}
|
|
6091
6091
|
|
|
6092
6092
|
// src/bin/agt.ts
|
|
6093
|
-
var cliVersion2 = true ? "0.28.
|
|
6093
|
+
var cliVersion2 = true ? "0.28.603" : "dev";
|
|
6094
6094
|
var program = new Command();
|
|
6095
6095
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6096
6096
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -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.603" : "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-SCST4W6W.js.map
|