@integrity-labs/agt-cli 0.28.356 → 0.28.357

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-3OVI7DRG.js";
43
+ } from "../chunk-GAWEPU6C.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
4829
4829
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4830
4830
  import chalk18 from "chalk";
4831
4831
  import ora16 from "ora";
4832
- var cliVersion = true ? "0.28.356" : "dev";
4832
+ var cliVersion = true ? "0.28.357" : "dev";
4833
4833
  async function fetchLatestVersion() {
4834
4834
  const host2 = getHost();
4835
4835
  if (!host2) return null;
@@ -6001,7 +6001,7 @@ function handleError(err) {
6001
6001
  }
6002
6002
 
6003
6003
  // src/bin/agt.ts
6004
- var cliVersion2 = true ? "0.28.356" : "dev";
6004
+ var cliVersion2 = true ? "0.28.357" : "dev";
6005
6005
  var program = new Command();
6006
6006
  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");
6007
6007
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5267,6 +5267,13 @@ ${sections}`
5267
5267
  // every sender as "internal".
5268
5268
  ...senderPolicyInternalOnly ? { SLACK_INTERNAL_ONLY: "true" } : {},
5269
5269
  ...senderPolicyInternalOnly && typeof config["team_id"] === "string" && config["team_id"].length > 0 ? { SLACK_HOME_TEAM_ID: config["team_id"] } : {},
5270
+ // ENG-7919: inject the bot's own Slack user ID so it is available at
5271
+ // MCP startup before auth.test resolves. Populated by the slack-bot-user-id
5272
+ // client on first startup and stored in agent_channel_configs.config.bot_user_id.
5273
+ // On first provision bot_user_id is absent; the MCP resolves it via auth.test
5274
+ // as before and falls back gracefully. On all subsequent provisions this env
5275
+ // var eliminates the ~10 s null window that caused self-mention misses.
5276
+ ...typeof config["bot_user_id"] === "string" && config["bot_user_id"].length > 0 ? { SLACK_OWN_BOT_USER_ID: config["bot_user_id"] } : {},
5270
5277
  // ENG-6035: per-agent diagnostic/restart allowlist. Gates
5271
5278
  // /investigate-<code-name> (fail-closed: command disabled when
5272
5279
  // unset) and /restart-<code-name> (open when unset). An explicit
@@ -7146,7 +7153,7 @@ function requireHost() {
7146
7153
  }
7147
7154
 
7148
7155
  // src/lib/api-client.ts
7149
- var agtCliVersion = true ? "0.28.356" : "dev";
7156
+ var agtCliVersion = true ? "0.28.357" : "dev";
7150
7157
  var lastConfigHash = null;
7151
7158
  function setConfigHash(hash) {
7152
7159
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9597,4 +9604,4 @@ export {
9597
9604
  managerInstallSystemUnitCommand,
9598
9605
  managerUninstallSystemUnitCommand
9599
9606
  };
9600
- //# sourceMappingURL=chunk-3OVI7DRG.js.map
9607
+ //# sourceMappingURL=chunk-GAWEPU6C.js.map