@integrity-labs/agt-cli 0.28.917 → 0.28.919

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-YDFEK6C6.js";
43
+ } from "../chunk-DUPUJAZE.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.917" : "dev";
5470
+ var cliVersion = true ? "0.28.919" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6682,7 +6682,7 @@ function handleError(err) {
6682
6682
  }
6683
6683
 
6684
6684
  // src/bin/agt.ts
6685
- var cliVersion2 = true ? "0.28.917" : "dev";
6685
+ var cliVersion2 = true ? "0.28.919" : "dev";
6686
6686
  var program = new Command();
6687
6687
  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");
6688
6688
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5684,7 +5684,16 @@ ${sections}`
5684
5684
  // MCP boot guard fails closed at startup rather than admitting
5685
5685
  // every sender as "internal".
5686
5686
  ...senderPolicyInternalOnly ? { SLACK_INTERNAL_ONLY: "true" } : {},
5687
- ...senderPolicyInternalOnly && typeof config["team_id"] === "string" && config["team_id"].length > 0 ? { SLACK_HOME_TEAM_ID: config["team_id"] } : {},
5687
+ // ENG-10440: SLACK_HOME_TEAM_ID is emitted whenever the install
5688
+ // knows its workspace, NOT only under internal_only. The MCP's
5689
+ // same-org test (decline vs silent drop, ENG-5859/ENG-6236) reads
5690
+ // it for EVERY restrictive mode and fails closed when it is
5691
+ // absent — so gating it on internal_only made every mode-block
5692
+ // decline dead for orgs without internal_only, which is most of
5693
+ // them. It is the install's identity, not a policy knob; the
5694
+ // internal_only boot guard still only fires when INTERNAL_ONLY
5695
+ // is set. The MCP also falls back to its own auth.test team_id.
5696
+ ...typeof config["team_id"] === "string" && config["team_id"].length > 0 ? { SLACK_HOME_TEAM_ID: config["team_id"] } : {},
5688
5697
  // ENG-7919: inject the bot's own Slack user ID so it is available at
5689
5698
  // MCP startup before auth.test resolves. Populated by the slack-bot-user-id
5690
5699
  // client on first startup and stored in agent_channel_configs.config.bot_user_id.
@@ -5955,7 +5964,11 @@ ${sections}`
5955
5964
  // SLACK_HOME_TEAM_ID-equivalent emission when the install hasn't
5956
5965
  // pinned a real tenant. MCP boot guard fails closed.
5957
5966
  ...senderPolicyInternalOnly ? { MSTEAMS_INTERNAL_ONLY: "true" } : {},
5958
- ...senderPolicyInternalOnly && tenantId !== "common" ? { MSTEAMS_HOME_TENANT_ID: tenantId } : {}
5967
+ // ENG-10440: emitted whenever a real tenant is pinned, not only under
5968
+ // internal_only — teams-channel's same-org test reads it for every
5969
+ // restrictive mode, exactly as the Slack pair above. 'common' is still
5970
+ // never emitted.
5971
+ ...tenantId !== "common" ? { MSTEAMS_HOME_TENANT_ID: tenantId } : {}
5959
5972
  };
5960
5973
  if (isPersistent && existsSync4(localTeamsChannel)) {
5961
5974
  mcpServers["msteams"] = {
@@ -6929,7 +6942,7 @@ function exchangeFailureKind(err) {
6929
6942
  }
6930
6943
 
6931
6944
  // src/lib/api-client.ts
6932
- var agtCliVersion = true ? "0.28.917" : "dev";
6945
+ var agtCliVersion = true ? "0.28.919" : "dev";
6933
6946
  var lastConfigHash = null;
6934
6947
  function setConfigHash(hash) {
6935
6948
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11539,4 +11552,4 @@ export {
11539
11552
  managerInstallSystemUnitCommand,
11540
11553
  managerUninstallSystemUnitCommand
11541
11554
  };
11542
- //# sourceMappingURL=chunk-YDFEK6C6.js.map
11555
+ //# sourceMappingURL=chunk-DUPUJAZE.js.map