@integrity-labs/agt-cli 0.27.31 → 0.27.33

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.
@@ -57,10 +57,15 @@ PY
57
57
  fi
58
58
  fi
59
59
 
60
+ # Pin an explicit bright-white foreground (97) alongside the coloured
61
+ # background. Without it the badge text falls back to the terminal's
62
+ # default foreground, which is a dark colour on many themes and renders
63
+ # near-illegibly on the magenta/red background (ENG-5818 follow-up —
64
+ # dark-on-magenta reported on Scout's impersonation badge).
60
65
  if [ "$expired" = "1" ]; then
61
- printf "\033[1;41m 🤖 %s EXPIRED \033[0m " "$display_name"
66
+ printf "\033[1;97;41m 🤖 %s EXPIRED \033[0m " "$display_name"
62
67
  else
63
- printf "\033[1;45m 🤖 %s \033[0m " "$display_name"
68
+ printf "\033[1;97;45m 🤖 %s \033[0m " "$display_name"
64
69
  fi
65
70
 
66
71
  # Also rename the terminal tab to the agent name so operators with
package/dist/bin/agt.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  success,
28
28
  table,
29
29
  warn
30
- } from "../chunk-E6MGOZTL.js";
30
+ } from "../chunk-IQP6CNDB.js";
31
31
  import {
32
32
  CHANNEL_REGISTRY,
33
33
  DEPLOYMENT_TEMPLATES,
@@ -53,7 +53,7 @@ import {
53
53
  renderTemplate,
54
54
  resolveChannels,
55
55
  serializeManifestForSlackCli
56
- } from "../chunk-6HFXSNNY.js";
56
+ } from "../chunk-NZWPRYJO.js";
57
57
 
58
58
  // src/bin/agt.ts
59
59
  import { join as join15 } from "path";
@@ -4658,7 +4658,7 @@ import { execFileSync, execSync } from "child_process";
4658
4658
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4659
4659
  import chalk18 from "chalk";
4660
4660
  import ora16 from "ora";
4661
- var cliVersion = true ? "0.27.31" : "dev";
4661
+ var cliVersion = true ? "0.27.33" : "dev";
4662
4662
  async function fetchLatestVersion() {
4663
4663
  const host2 = getHost();
4664
4664
  if (!host2) return null;
@@ -5190,7 +5190,7 @@ function handleError(err) {
5190
5190
  }
5191
5191
 
5192
5192
  // src/bin/agt.ts
5193
- var cliVersion2 = true ? "0.27.31" : "dev";
5193
+ var cliVersion2 = true ? "0.27.33" : "dev";
5194
5194
  var program = new Command();
5195
5195
  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");
5196
5196
  program.hook("preAction", (thisCommand) => {
@@ -9,7 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-6HFXSNNY.js";
12
+ } from "./chunk-NZWPRYJO.js";
13
13
 
14
14
  // ../../packages/core/dist/integrations/registry.js
15
15
  var INTEGRATION_REGISTRY = [
@@ -4872,9 +4872,11 @@ ${sections}`
4872
4872
  writeChannelCredentials(codeName, channelId, config, options) {
4873
4873
  const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
4874
4874
  const senderPolicyMode = options?.senderPolicy?.mode;
4875
- const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.team_id : void 0;
4875
+ const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" || options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_id : void 0;
4876
4876
  const slackPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.slack_user_id : void 0;
4877
4877
  const teamsPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.teams_aad_object_id : void 0;
4878
+ const slackTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.slack_user_ids?.join(",") : void 0;
4879
+ const teamsTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.teams_aad_object_ids?.join(",") : void 0;
4878
4880
  const senderPolicyInternalOnly = options?.senderPolicy?.internal_only === true;
4879
4881
  const senderPolicyEnv = senderPolicyTeamId ? { AGT_TEAM_ID: senderPolicyTeamId } : {};
4880
4882
  const agentDir = getAgentDir(codeName);
@@ -5041,6 +5043,12 @@ ${sections}`
5041
5043
  // principal has no Slack ID; MCP filter fails closed on the
5042
5044
  // missing env var by dropping all human inbound.
5043
5045
  ...slackPrincipalId ? { SLACK_SENDER_POLICY_PRINCIPAL_ID: slackPrincipalId } : {},
5046
+ // ENG-5871: team_only mode injects a comma-separated list of
5047
+ // team-member Slack user_ids. Absent/empty = MCP filter drops
5048
+ // humans on Slack but still admits same-team agents via label.
5049
+ // No additional shape parsing on the MCP side — `.split(',')`
5050
+ // works because Slack user_ids are `[A-Z0-9]+` (no commas).
5051
+ ...slackTeamPrincipalIds ? { SLACK_SENDER_POLICY_TEAM_PRINCIPAL_IDS: slackTeamPrincipalIds } : {},
5044
5052
  // ENG-5843: org-boundary gate. SLACK_INTERNAL_ONLY signals the
5045
5053
  // filter to check sender's workspace against SLACK_HOME_TEAM_ID
5046
5054
  // (sourced from the bot install's team_id, populated by
@@ -5237,6 +5245,10 @@ ${sections}`
5237
5245
  // people.contact_preferences.teams_aad_object_id. Same fail-closed
5238
5246
  // contract as the Slack branch above.
5239
5247
  ...teamsPrincipalId ? { MSTEAMS_SENDER_POLICY_PRINCIPAL_ID: teamsPrincipalId } : {},
5248
+ // ENG-5871: team_only mode injects a comma-separated list of team-
5249
+ // member Teams AAD object IDs. Same fail-closed contract as Slack.
5250
+ // AAD IDs are UUIDs (no commas), so .split(',') is safe.
5251
+ ...teamsTeamPrincipalIds ? { MSTEAMS_SENDER_POLICY_TEAM_PRINCIPAL_IDS: teamsTeamPrincipalIds } : {},
5240
5252
  // ENG-5843: org-boundary gate. MSTEAMS_INTERNAL_ONLY + MSTEAMS_HOME_TENANT_ID
5241
5253
  // mirror the Slack pair. Source is the same tenantId the existing
5242
5254
  // MSTEAMS_TENANT_ID env var already carries — defaulting to "common"
@@ -6965,4 +6977,4 @@ export {
6965
6977
  managerInstallSystemUnitCommand,
6966
6978
  managerUninstallSystemUnitCommand
6967
6979
  };
6968
- //# sourceMappingURL=chunk-E6MGOZTL.js.map
6980
+ //# sourceMappingURL=chunk-IQP6CNDB.js.map