@integrity-labs/agt-cli 0.28.1240 → 0.28.1241
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-2LFQKPM5.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1241" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1241" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
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");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
|
|
|
8095
8095
|
}
|
|
8096
8096
|
|
|
8097
8097
|
// src/lib/api-client.ts
|
|
8098
|
-
var agtCliVersion = true ? "0.28.
|
|
8098
|
+
var agtCliVersion = true ? "0.28.1241" : "dev";
|
|
8099
8099
|
var lastConfigHash = null;
|
|
8100
8100
|
function setConfigHash(hash) {
|
|
8101
8101
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13750,4 +13750,4 @@ export {
|
|
|
13750
13750
|
managerInstallSystemUnitCommand,
|
|
13751
13751
|
managerUninstallSystemUnitCommand
|
|
13752
13752
|
};
|
|
13753
|
-
//# sourceMappingURL=chunk-
|
|
13753
|
+
//# sourceMappingURL=chunk-2LFQKPM5.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-2LFQKPM5.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -13545,6 +13545,7 @@ function resolveTelegramIngestParamsFromEnv(env, ctx) {
|
|
|
13545
13545
|
allowedChats: parseTelegramAllowedChatsEnv(env),
|
|
13546
13546
|
peerConfig: buildTelegramPeerClassifierConfigFromEnv(env),
|
|
13547
13547
|
senderPolicy: buildTelegramSenderPolicyFromEnv(env, ctx),
|
|
13548
|
+
privateChatsOnly: env["TELEGRAM_PRIVATE_CHATS_ONLY"] === "1",
|
|
13548
13549
|
ackReaction,
|
|
13549
13550
|
...skipReaction ? { skipReaction } : {}
|
|
13550
13551
|
};
|
|
@@ -13607,7 +13608,10 @@ async function dispatchTelegramInbound(update, ctx) {
|
|
|
13607
13608
|
// `deps.senderPolicy` is undefined, which the gate treats as `all`, so the
|
|
13608
13609
|
// registry's claim that both runtimes supply this leaf was false on this
|
|
13609
13610
|
// path. eng-9665-opencode-sender-policy.test.ts fails if it is removed.
|
|
13610
|
-
senderPolicy: ctx.senderPolicy
|
|
13611
|
+
senderPolicy: ctx.senderPolicy,
|
|
13612
|
+
// ENG-12000: without this the gate's chat-kind axis is off, so group traffic
|
|
13613
|
+
// was admitted with private-only on. eng-12000 test fails if it is removed.
|
|
13614
|
+
privateChatsOnly: ctx.privateChatsOnly
|
|
13611
13615
|
});
|
|
13612
13616
|
if (!decision.admit) {
|
|
13613
13617
|
ctx.log(`[telegram-ingest:${ctx.codeName}] dropped chat=${redactId(chatId)} reason=${decision.reason}`);
|
|
@@ -13715,6 +13719,7 @@ function startTelegramIngest(config2) {
|
|
|
13715
13719
|
allowedChats: config2.allowedChats,
|
|
13716
13720
|
peerConfig: config2.peerConfig,
|
|
13717
13721
|
senderPolicy: config2.senderPolicy,
|
|
13722
|
+
privateChatsOnly: config2.privateChatsOnly,
|
|
13718
13723
|
self: config2.self,
|
|
13719
13724
|
inject: config2.inject,
|
|
13720
13725
|
sendReply,
|
|
@@ -13806,6 +13811,9 @@ function fingerprint2(params) {
|
|
|
13806
13811
|
// changes only the ids, so hashing the mode alone would miss exactly the
|
|
13807
13812
|
// case `3ff390e32af6` describes.
|
|
13808
13813
|
senderPolicy: params.senderPolicy,
|
|
13814
|
+
// ENG-12000: toggling private-only in the console must restart a live
|
|
13815
|
+
// loop, or the old chat-kind gate keeps running until something else does.
|
|
13816
|
+
privateChatsOnly: params.privateChatsOnly,
|
|
13809
13817
|
ackReaction: params.ackReaction ?? null,
|
|
13810
13818
|
skipReaction: params.skipReaction ?? null
|
|
13811
13819
|
})
|
|
@@ -13912,6 +13920,7 @@ async function ensureOpencodeTelegramIngest(opts) {
|
|
|
13912
13920
|
allowedChats: params.allowedChats,
|
|
13913
13921
|
peerConfig: params.peerConfig,
|
|
13914
13922
|
senderPolicy: params.senderPolicy,
|
|
13923
|
+
privateChatsOnly: params.privateChatsOnly,
|
|
13915
13924
|
self,
|
|
13916
13925
|
inject: (msg) => injectOpencodeMessage(codeName, msg, { awaitReply: true }),
|
|
13917
13926
|
log: log2,
|
|
@@ -16677,7 +16686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16677
16686
|
var lastVersionCheckAt = 0;
|
|
16678
16687
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16679
16688
|
var lastResponsivenessProbeAt = 0;
|
|
16680
|
-
var agtCliVersion = true ? "0.28.
|
|
16689
|
+
var agtCliVersion = true ? "0.28.1241" : "dev";
|
|
16681
16690
|
function resolveBrewPath(execFileSync3) {
|
|
16682
16691
|
try {
|
|
16683
16692
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|