@integrity-labs/agt-cli 0.28.733 → 0.28.734
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 +4 -4
- package/dist/{chunk-7KT2QNXF.js → chunk-5CF4DRXA.js} +4 -1
- package/dist/{chunk-7KT2QNXF.js.map → chunk-5CF4DRXA.js.map} +1 -1
- package/dist/{chunk-LT7UGH4O.js → chunk-RLOZVCRY.js} +3 -3
- package/dist/{claude-pair-runtime-K5OUT4QN.js → claude-pair-runtime-AWLXOAV6.js} +2 -2
- package/dist/lib/manager-worker.js +23 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +3 -0
- package/dist/mcp/teams-channel.js +3 -0
- package/dist/mcp/telegram-channel.js +23 -13
- package/dist/{persistent-session-H7CP2TUX.js → persistent-session-4KGDH66U.js} +2 -2
- package/dist/{responsiveness-probe-MPPDJSOL.js → responsiveness-probe-HNUYLIFJ.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-LT7UGH4O.js.map → chunk-RLOZVCRY.js.map} +0 -0
- /package/dist/{claude-pair-runtime-K5OUT4QN.js.map → claude-pair-runtime-AWLXOAV6.js.map} +0 -0
- /package/dist/{persistent-session-H7CP2TUX.js.map → persistent-session-4KGDH66U.js.map} +0 -0
- /package/dist/{responsiveness-probe-MPPDJSOL.js.map → responsiveness-probe-HNUYLIFJ.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseEnvFileEntries,
|
|
14
14
|
parseEnvIntegrations,
|
|
15
15
|
shellQuote
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5CF4DRXA.js";
|
|
17
17
|
import {
|
|
18
18
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
19
19
|
INTEGRATIONS_SECTION_END,
|
|
@@ -6427,7 +6427,7 @@ function exchangeFailureKind(err) {
|
|
|
6427
6427
|
}
|
|
6428
6428
|
|
|
6429
6429
|
// src/lib/api-client.ts
|
|
6430
|
-
var agtCliVersion = true ? "0.28.
|
|
6430
|
+
var agtCliVersion = true ? "0.28.734" : "dev";
|
|
6431
6431
|
var lastConfigHash = null;
|
|
6432
6432
|
function setConfigHash(hash) {
|
|
6433
6433
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10473,4 +10473,4 @@ export {
|
|
|
10473
10473
|
managerInstallSystemUnitCommand,
|
|
10474
10474
|
managerUninstallSystemUnitCommand
|
|
10475
10475
|
};
|
|
10476
|
-
//# sourceMappingURL=chunk-
|
|
10476
|
+
//# sourceMappingURL=chunk-RLOZVCRY.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-4KGDH66U.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-AWLXOAV6.js.map
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
safeWriteJsonAtomic,
|
|
58
58
|
setConfigHash,
|
|
59
59
|
tripClass
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-RLOZVCRY.js";
|
|
61
61
|
import {
|
|
62
62
|
getProjectDir as getProjectDir2,
|
|
63
63
|
getReadyTasks,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
takeZombieDetection,
|
|
119
119
|
toOpencodeModel,
|
|
120
120
|
writeEgressAllowlist
|
|
121
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-5CF4DRXA.js";
|
|
122
122
|
import {
|
|
123
123
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
124
124
|
AnchorSessionClient,
|
|
@@ -9218,6 +9218,9 @@ function decideInboundAccess(input) {
|
|
|
9218
9218
|
if (input.orgBoundary && !input.orgBoundary.forward) {
|
|
9219
9219
|
return { kind: "drop", reason: "org_boundary" };
|
|
9220
9220
|
}
|
|
9221
|
+
if (input.chatType && !input.chatType.forward) {
|
|
9222
|
+
return { kind: "drop", reason: "chat_type" };
|
|
9223
|
+
}
|
|
9221
9224
|
if (input.senderPolicy && !input.senderPolicy.forward) {
|
|
9222
9225
|
const reason = input.senderPolicy.reason;
|
|
9223
9226
|
const declineWorthy = input.sameOrg && reason !== "internal_only";
|
|
@@ -9993,6 +9996,11 @@ function parsePeerAgentModeEnv2(raw) {
|
|
|
9993
9996
|
return "off";
|
|
9994
9997
|
}
|
|
9995
9998
|
|
|
9999
|
+
// ../../packages/core/dist/channels/governance/telegram-chat-type.js
|
|
10000
|
+
function isTelegramPrivateChat(chatType) {
|
|
10001
|
+
return chatType === "private";
|
|
10002
|
+
}
|
|
10003
|
+
|
|
9996
10004
|
// ../../packages/core/dist/channels/governance/telegram-sender-gate.js
|
|
9997
10005
|
function evaluateTelegramInboundGate(evt, deps) {
|
|
9998
10006
|
const isBot = Boolean(evt.from?.is_bot);
|
|
@@ -10029,6 +10037,10 @@ function evaluateTelegramInboundGate(evt, deps) {
|
|
|
10029
10037
|
// TELEGRAM_ALLOWED_CHATS is Telegram's org-boundary axis. An unlisted chat is
|
|
10030
10038
|
// external ⇒ silent drop.
|
|
10031
10039
|
orgBoundary: deps.allowedChats.size > 0 && !deps.allowedChats.has(chatId) ? { forward: false } : { forward: true },
|
|
10040
|
+
// CS-1628: the chat-kind axis. Only ever restricts - when the policy is off
|
|
10041
|
+
// this is `{ forward: true }`, which the composer treats identically to the
|
|
10042
|
+
// field being absent.
|
|
10043
|
+
chatType: deps.privateChatsOnly && !isTelegramPrivateChat(evt.chat.type) ? { forward: false } : { forward: true },
|
|
10032
10044
|
// No sender-policy mode system and no command dispatch on the injection gate.
|
|
10033
10045
|
sameOrg: false
|
|
10034
10046
|
});
|
|
@@ -12347,7 +12359,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12347
12359
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12348
12360
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12349
12361
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12350
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12362
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-HNUYLIFJ.js");
|
|
12351
12363
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12352
12364
|
if (newest === null) return null;
|
|
12353
12365
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -12995,7 +13007,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12995
13007
|
var lastVersionCheckAt = 0;
|
|
12996
13008
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12997
13009
|
var lastResponsivenessProbeAt = 0;
|
|
12998
|
-
var agtCliVersion = true ? "0.28.
|
|
13010
|
+
var agtCliVersion = true ? "0.28.734" : "dev";
|
|
12999
13011
|
function resolveBrewPath(execFileSync3) {
|
|
13000
13012
|
try {
|
|
13001
13013
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -14522,7 +14534,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
14522
14534
|
if (codeNames.length === 0) return;
|
|
14523
14535
|
void (async () => {
|
|
14524
14536
|
try {
|
|
14525
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14537
|
+
const { collectDiagnostics } = await import("../persistent-session-4KGDH66U.js");
|
|
14526
14538
|
await api.post("/host/heartbeat", {
|
|
14527
14539
|
host_id: hostId,
|
|
14528
14540
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -14663,7 +14675,7 @@ async function pollCycleInner() {
|
|
|
14663
14675
|
}
|
|
14664
14676
|
try {
|
|
14665
14677
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
14666
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14678
|
+
const { collectDiagnostics } = await import("../persistent-session-4KGDH66U.js");
|
|
14667
14679
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
14668
14680
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
14669
14681
|
let tailscaleHostname;
|
|
@@ -14832,7 +14844,7 @@ async function pollCycleInner() {
|
|
|
14832
14844
|
collectPanelessActivityProbes,
|
|
14833
14845
|
getResponsivenessIntervalMs,
|
|
14834
14846
|
occupancyQualificationClassifications
|
|
14835
|
-
} = await import("../responsiveness-probe-
|
|
14847
|
+
} = await import("../responsiveness-probe-HNUYLIFJ.js");
|
|
14836
14848
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
14837
14849
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
14838
14850
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -14942,7 +14954,7 @@ async function pollCycleInner() {
|
|
|
14942
14954
|
collectResponsivenessProbes,
|
|
14943
14955
|
livePendingInboundOldestAgeSeconds,
|
|
14944
14956
|
parkPendingInbound
|
|
14945
|
-
} = await import("../responsiveness-probe-
|
|
14957
|
+
} = await import("../responsiveness-probe-HNUYLIFJ.js");
|
|
14946
14958
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
14947
14959
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
14948
14960
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19009,7 +19021,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
19009
19021
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
19010
19022
|
void (async () => {
|
|
19011
19023
|
try {
|
|
19012
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19024
|
+
const { collectDiagnostics } = await import("../persistent-session-4KGDH66U.js");
|
|
19013
19025
|
await api.post("/host/heartbeat", {
|
|
19014
19026
|
host_id: hostId,
|
|
19015
19027
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19055,7 +19067,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
19055
19067
|
}
|
|
19056
19068
|
try {
|
|
19057
19069
|
const hostId = await getHostId();
|
|
19058
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19070
|
+
const { collectDiagnostics } = await import("../persistent-session-4KGDH66U.js");
|
|
19059
19071
|
await api.post("/host/heartbeat", {
|
|
19060
19072
|
host_id: hostId,
|
|
19061
19073
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19687,7 +19699,7 @@ async function processClaudePairSessions(agents) {
|
|
|
19687
19699
|
killPairSession,
|
|
19688
19700
|
pairTmuxSession,
|
|
19689
19701
|
finalizeClaudePairOnboarding
|
|
19690
|
-
} = await import("../claude-pair-runtime-
|
|
19702
|
+
} = await import("../claude-pair-runtime-AWLXOAV6.js");
|
|
19691
19703
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
19692
19704
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
19693
19705
|
const killed = await killPairSession(pairTmuxSession(pairId));
|