@integrity-labs/agt-cli 0.28.82 → 0.28.84
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 +3 -3
- package/dist/{chunk-WSRT4VSX.js → chunk-EIXW7L6A.js} +18 -3
- package/dist/{chunk-WSRT4VSX.js.map → chunk-EIXW7L6A.js.map} +1 -1
- package/dist/lib/manager-worker.js +2 -2
- package/dist/mcp/slack-channel.js +52 -28
- package/dist/mcp/telegram-channel.js +126 -65
- package/package.json +1 -1
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-EIXW7L6A.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.84" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.84" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
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");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5619,6 +5619,7 @@ function buildPostizMcpEntry(integration) {
|
|
|
5619
5619
|
}
|
|
5620
5620
|
function buildMcpJson(input) {
|
|
5621
5621
|
const mcpServers = {};
|
|
5622
|
+
const turnInitiatorFile = join4(getAgentDir(input.agent.code_name), ".current-turn-initiator.json");
|
|
5622
5623
|
const localMcpPath = join4(getHomeDir3(), ".augmented", "_mcp", "index.js");
|
|
5623
5624
|
mcpServers["augmented"] = {
|
|
5624
5625
|
command: "node",
|
|
@@ -5735,6 +5736,9 @@ function buildMcpJson(input) {
|
|
|
5735
5736
|
AGT_AGENT_ID: input.agent.agent_id,
|
|
5736
5737
|
AGT_RUN_ID: "${AGT_RUN_ID}",
|
|
5737
5738
|
AGT_API_KEY: "${AGT_API_KEY}",
|
|
5739
|
+
// ENG-6563 (D16): read the verified turn initiator the channel MCP stamps
|
|
5740
|
+
// and forward it on each /xero-broker/requests call.
|
|
5741
|
+
AGT_TURN_INITIATOR_FILE: turnInitiatorFile,
|
|
5738
5742
|
PATH: process.env["PATH"] ?? "",
|
|
5739
5743
|
HOME: process.env["HOME"] ?? ""
|
|
5740
5744
|
}
|
|
@@ -6298,7 +6302,10 @@ ${sections}`
|
|
|
6298
6302
|
// the allowlist to every agent on the host. Omitted when empty
|
|
6299
6303
|
// so the host fallback (and the fail-closed /investigate
|
|
6300
6304
|
// default) still apply to unconfigured agents.
|
|
6301
|
-
...allowedUsers.length > 0 ? { SLACK_ALLOWED_USERS: allowedUsers.join(",") } : {}
|
|
6305
|
+
...allowedUsers.length > 0 ? { SLACK_ALLOWED_USERS: allowedUsers.join(",") } : {},
|
|
6306
|
+
// ENG-6563 (D16): stamp the verified turn initiator so broker MCPs
|
|
6307
|
+
// can forward it when the agent files an approval mid-turn.
|
|
6308
|
+
AGT_TURN_INITIATOR_FILE: join4(agentDir, ".current-turn-initiator.json")
|
|
6302
6309
|
}
|
|
6303
6310
|
};
|
|
6304
6311
|
const provisionMcpPath = join4(agentDir, "provision", ".mcp.json");
|
|
@@ -6430,6 +6437,8 @@ ${sections}`
|
|
|
6430
6437
|
...slackPeerEnv,
|
|
6431
6438
|
...slackAgtAuthEnv,
|
|
6432
6439
|
...tzEnv,
|
|
6440
|
+
// ENG-6563 (D16): stamp the verified turn initiator for broker MCPs.
|
|
6441
|
+
AGT_TURN_INITIATOR_FILE: join4(getAgentDir(codeName), ".current-turn-initiator.json"),
|
|
6433
6442
|
// ENG-6155: avatar URL → bot Slack profile photo (see persistent
|
|
6434
6443
|
// branch above). Mirrored here so oneshot-mode agents get it too.
|
|
6435
6444
|
// ENG-6245: slackAvatarEnvUrl is null for data-URI / oversized values.
|
|
@@ -6452,6 +6461,8 @@ ${sections}`
|
|
|
6452
6461
|
...slackPeerEnv,
|
|
6453
6462
|
...slackAgtAuthEnv,
|
|
6454
6463
|
...tzEnv,
|
|
6464
|
+
// ENG-6563 (D16): stamp the verified turn initiator for broker MCPs.
|
|
6465
|
+
AGT_TURN_INITIATOR_FILE: join4(getAgentDir(codeName), ".current-turn-initiator.json"),
|
|
6455
6466
|
// ENG-6155: avatar URL → bot Slack profile photo (see persistent
|
|
6456
6467
|
// branch above). Mirrored here so oneshot-mode agents get it too.
|
|
6457
6468
|
// ENG-6245: slackAvatarEnvUrl is null for data-URI / oversized values.
|
|
@@ -6768,6 +6779,10 @@ ${sections}`
|
|
|
6768
6779
|
AGT_API_KEY: "${AGT_API_KEY}",
|
|
6769
6780
|
AGT_AGENT_ID: brokerAgentId,
|
|
6770
6781
|
AGT_RUN_ID: "${AGT_RUN_ID}",
|
|
6782
|
+
// ENG-6563 (D16): keep incremental xero-broker wiring in sync with
|
|
6783
|
+
// buildMcpJson so agents that add xero-broker post-provision still
|
|
6784
|
+
// forward the per-turn initiator.
|
|
6785
|
+
AGT_TURN_INITIATOR_FILE: join4(getAgentDir(codeName), ".current-turn-initiator.json"),
|
|
6771
6786
|
PATH: process.env["PATH"] ?? "",
|
|
6772
6787
|
HOME: process.env["HOME"] ?? ""
|
|
6773
6788
|
}
|
|
@@ -7516,7 +7531,7 @@ function requireHost() {
|
|
|
7516
7531
|
}
|
|
7517
7532
|
|
|
7518
7533
|
// src/lib/api-client.ts
|
|
7519
|
-
var agtCliVersion = true ? "0.28.
|
|
7534
|
+
var agtCliVersion = true ? "0.28.84" : "dev";
|
|
7520
7535
|
var lastConfigHash = null;
|
|
7521
7536
|
function setConfigHash(hash) {
|
|
7522
7537
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8813,4 +8828,4 @@ export {
|
|
|
8813
8828
|
managerInstallSystemUnitCommand,
|
|
8814
8829
|
managerUninstallSystemUnitCommand
|
|
8815
8830
|
};
|
|
8816
|
-
//# sourceMappingURL=chunk-
|
|
8831
|
+
//# sourceMappingURL=chunk-EIXW7L6A.js.map
|