@integrity-labs/agt-cli 0.28.23 → 0.28.25
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
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
success,
|
|
34
34
|
table,
|
|
35
35
|
warn
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-6MF3QAKQ.js";
|
|
37
37
|
import {
|
|
38
38
|
CHANNEL_REGISTRY,
|
|
39
39
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4773,7 +4773,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4773
4773
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4774
4774
|
import chalk18 from "chalk";
|
|
4775
4775
|
import ora16 from "ora";
|
|
4776
|
-
var cliVersion = true ? "0.28.
|
|
4776
|
+
var cliVersion = true ? "0.28.25" : "dev";
|
|
4777
4777
|
async function fetchLatestVersion() {
|
|
4778
4778
|
const host2 = getHost();
|
|
4779
4779
|
if (!host2) return null;
|
|
@@ -5696,7 +5696,7 @@ function handleError(err) {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
|
|
5698
5698
|
// src/bin/agt.ts
|
|
5699
|
-
var cliVersion2 = true ? "0.28.
|
|
5699
|
+
var cliVersion2 = true ? "0.28.25" : "dev";
|
|
5700
5700
|
var program = new Command();
|
|
5701
5701
|
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");
|
|
5702
5702
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4542,7 +4542,19 @@ function provisionStopHook(codeName) {
|
|
|
4542
4542
|
' local chat_id="$1" msg_id="$2"',
|
|
4543
4543
|
' if [ -z "$chat_id" ] || [ -z "$msg_id" ]; then return; fi',
|
|
4544
4544
|
" # If the agent DID call telegram.reply this turn, no recovery needed.",
|
|
4545
|
-
|
|
4545
|
+
" # ENG-6405: match the namespaced transcript form (mcp__telegram__telegram_reply)",
|
|
4546
|
+
" # as ENG-6387 did for Slack \u2014 the bare `^telegram\\.reply$` never matched a real",
|
|
4547
|
+
" # transcript, so this same-turn guard was dead (masked only by the MCP-side",
|
|
4548
|
+
" # marker clear). The `(^|__)` + `[._]` form catches both shapes.",
|
|
4549
|
+
` if echo "$TOOL_NAMES" | grep -qE '(^|__)telegram[._](reply|send_message)$'; then return; fi`,
|
|
4550
|
+
" # ENG-6405 \u2014 correlation + fail-silent parity with Slack (ENG-6387). If the",
|
|
4551
|
+
" # agent has telegram.replied/sent to a DIFFERENT chat_id anywhere in the recent",
|
|
4552
|
+
" # window, it is conversing elsewhere and TEXT is not a reliably-correlated ghost",
|
|
4553
|
+
" # of THIS inbound \u2014 recovering it would post mis-correlated text. Stay silent: a",
|
|
4554
|
+
" # silent gap the operator re-pings beats wrong content that poisons trust.",
|
|
4555
|
+
" local replied_other",
|
|
4556
|
+
` replied_other=$(tail -400 "$TRANSCRIPT_PATH" 2>/dev/null | jq -s --arg cid "$chat_id" '[ .[] | select((.type // .role)=="assistant") | (.message.content // .content // []) | (if type=="array" then . else [] end) | .[] | select((.type=="tool_use") and ((.name|tostring)|test("telegram[._](reply|send_message)$")) and (((.input.chat_id // "")) as $c | ($c != $cid and $c != ""))) ] | length' 2>/dev/null || true)`,
|
|
4557
|
+
' if [ "${replied_other:-0}" -gt 0 ] 2>/dev/null; then return; fi',
|
|
4546
4558
|
" local marker_name",
|
|
4547
4559
|
' marker_name="$(safe_id "$chat_id")__$(safe_id "$msg_id").json"',
|
|
4548
4560
|
' local marker_path="${TG_MARKER_DIR}/${marker_name}"',
|
|
@@ -4596,7 +4608,17 @@ function provisionStopHook(codeName) {
|
|
|
4596
4608
|
' local conversation_id="$1" reply_to_id="$2" service_url="$3"',
|
|
4597
4609
|
' if [ -z "$conversation_id" ] || [ -z "$service_url" ]; then return; fi',
|
|
4598
4610
|
" # If the agent DID call teams.reply this turn, no recovery needed.",
|
|
4599
|
-
|
|
4611
|
+
" # ENG-6405: namespaced transcript form (mcp__teams__teams_reply); the bare",
|
|
4612
|
+
" # `^teams\\.reply$` was dead (masked by the MCP-side marker clear), same bug",
|
|
4613
|
+
" # ENG-6387 fixed for Slack.",
|
|
4614
|
+
` if echo "$TOOL_NAMES" | grep -qE '(^|__)teams[._]reply$'; then return; fi`,
|
|
4615
|
+
" # ENG-6405 \u2014 correlation + fail-silent parity. If the agent has teams.replied",
|
|
4616
|
+
" # to a DIFFERENT conversation_id in the recent window, TEXT is not a reliably-",
|
|
4617
|
+
" # correlated ghost of THIS inbound \u2014 stay silent rather than post mis-correlated",
|
|
4618
|
+
" # text (silence the operator re-pings beats wrong content that poisons trust).",
|
|
4619
|
+
" local replied_other",
|
|
4620
|
+
` replied_other=$(tail -400 "$TRANSCRIPT_PATH" 2>/dev/null | jq -s --arg cid "$conversation_id" '[ .[] | select((.type // .role)=="assistant") | (.message.content // .content // []) | (if type=="array" then . else [] end) | .[] | select((.type=="tool_use") and ((.name|tostring)|test("teams[._]reply$")) and (((.input.conversation_id // "")) as $c | ($c != $cid and $c != ""))) ] | length' 2>/dev/null || true)`,
|
|
4621
|
+
' if [ "${replied_other:-0}" -gt 0 ] 2>/dev/null; then return; fi',
|
|
4600
4622
|
" # teams-channel.ts encodes the marker filename as",
|
|
4601
4623
|
" # hex(conversation_id)[..64]--hex(activity_id)[..64].json",
|
|
4602
4624
|
" # We don't have the original activity_id here, only the",
|
|
@@ -8291,4 +8313,4 @@ export {
|
|
|
8291
8313
|
managerInstallSystemUnitCommand,
|
|
8292
8314
|
managerUninstallSystemUnitCommand
|
|
8293
8315
|
};
|
|
8294
|
-
//# sourceMappingURL=chunk-
|
|
8316
|
+
//# sourceMappingURL=chunk-6MF3QAKQ.js.map
|