@integrity-labs/agt-cli 0.28.913 → 0.28.914
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-3WTA477Y.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.914" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6682,7 +6682,7 @@ function handleError(err) {
|
|
|
6682
6682
|
}
|
|
6683
6683
|
|
|
6684
6684
|
// src/bin/agt.ts
|
|
6685
|
-
var cliVersion2 = true ? "0.28.
|
|
6685
|
+
var cliVersion2 = true ? "0.28.914" : "dev";
|
|
6686
6686
|
var program = new Command();
|
|
6687
6687
|
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");
|
|
6688
6688
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
|
|
|
6841
6841
|
}
|
|
6842
6842
|
|
|
6843
6843
|
// src/lib/api-client.ts
|
|
6844
|
-
var agtCliVersion = true ? "0.28.
|
|
6844
|
+
var agtCliVersion = true ? "0.28.914" : "dev";
|
|
6845
6845
|
var lastConfigHash = null;
|
|
6846
6846
|
function setConfigHash(hash) {
|
|
6847
6847
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11451,4 +11451,4 @@ export {
|
|
|
11451
11451
|
managerInstallSystemUnitCommand,
|
|
11452
11452
|
managerUninstallSystemUnitCommand
|
|
11453
11453
|
};
|
|
11454
|
-
//# sourceMappingURL=chunk-
|
|
11454
|
+
//# sourceMappingURL=chunk-3WTA477Y.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-3WTA477Y.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -13818,7 +13818,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13818
13818
|
var lastVersionCheckAt = 0;
|
|
13819
13819
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13820
13820
|
var lastResponsivenessProbeAt = 0;
|
|
13821
|
-
var agtCliVersion = true ? "0.28.
|
|
13821
|
+
var agtCliVersion = true ? "0.28.914" : "dev";
|
|
13822
13822
|
function resolveBrewPath(execFileSync2) {
|
|
13823
13823
|
try {
|
|
13824
13824
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -43658,6 +43658,7 @@ function createReconcileIdentityClient(args) {
|
|
|
43658
43658
|
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS5)
|
|
43659
43659
|
});
|
|
43660
43660
|
}
|
|
43661
|
+
const RETRYABLE_OUTCOMES = /* @__PURE__ */ new Set(["ambiguous", "no_row"]);
|
|
43661
43662
|
async function emit(args2) {
|
|
43662
43663
|
const body = {
|
|
43663
43664
|
agent_id: agentId,
|
|
@@ -43675,9 +43676,17 @@ function createReconcileIdentityClient(args) {
|
|
|
43675
43676
|
if (!resp.ok) {
|
|
43676
43677
|
const text = await resp.text().catch(() => "");
|
|
43677
43678
|
log(`reconcile-identity: POST failed (${resp.status}) platform=${args2.platform}: ${text.slice(0, 200)}`);
|
|
43679
|
+
args2.onRetryable?.();
|
|
43680
|
+
return;
|
|
43681
|
+
}
|
|
43682
|
+
const outcome = await resp.json().then((d) => d.outcome).catch(() => void 0);
|
|
43683
|
+
if (typeof outcome === "string" && RETRYABLE_OUTCOMES.has(outcome)) {
|
|
43684
|
+
log(`reconcile-identity: outcome=${outcome} sender=${args2.senderId} \u2014 will retry on a later message`);
|
|
43685
|
+
args2.onRetryable?.();
|
|
43678
43686
|
}
|
|
43679
43687
|
} catch (err) {
|
|
43680
43688
|
log(`reconcile-identity: emit threw platform=${args2.platform}: ${err.message}`);
|
|
43689
|
+
args2.onRetryable?.();
|
|
43681
43690
|
}
|
|
43682
43691
|
}
|
|
43683
43692
|
return {
|
|
@@ -49318,7 +49327,12 @@ async function connectSocketMode() {
|
|
|
49318
49327
|
reconciledSlackSenders.add(senderId);
|
|
49319
49328
|
void resolveUserEmail(senderId).then((email2) => {
|
|
49320
49329
|
if (email2) {
|
|
49321
|
-
reconcileIdentityClient.reconcile({
|
|
49330
|
+
reconcileIdentityClient.reconcile({
|
|
49331
|
+
platform: "slack",
|
|
49332
|
+
senderId,
|
|
49333
|
+
email: email2,
|
|
49334
|
+
onRetryable: () => reconciledSlackSenders.delete(senderId)
|
|
49335
|
+
});
|
|
49322
49336
|
} else {
|
|
49323
49337
|
reconciledSlackSenders.delete(senderId);
|
|
49324
49338
|
}
|
package/package.json
CHANGED
|
File without changes
|