@integrity-labs/agt-cli 0.28.1077 → 0.28.1078

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,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-RAIBOJ2A.js";
43
+ } from "../chunk-R5IN7H32.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-QNS7N4QX.js";
48
+ } from "../chunk-PJWMW6ET.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-4WAUXFY7.js";
82
+ } from "../chunk-UDJINPUK.js";
83
83
  import "../chunk-OCMJ5E6J.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-EL5MWGGH.js";
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1077" : "dev";
5477
+ var cliVersion = true ? "0.28.1078" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1077" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1078" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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");
6740
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -24,7 +24,7 @@ import {
24
24
  rotateDailySession,
25
25
  sessionFileExists,
26
26
  todayLocalIso
27
- } from "./chunk-4WAUXFY7.js";
27
+ } from "./chunk-UDJINPUK.js";
28
28
  import {
29
29
  classifyUnanswerablePane,
30
30
  findUsageLimitResetHint,
@@ -6113,4 +6113,4 @@ export {
6113
6113
  stopAllSessionsAndWait,
6114
6114
  getProjectDir
6115
6115
  };
6116
- //# sourceMappingURL=chunk-QNS7N4QX.js.map
6116
+ //# sourceMappingURL=chunk-PJWMW6ET.js.map
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-QNS7N4QX.js";
19
+ } from "./chunk-PJWMW6ET.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -79,7 +79,7 @@ import {
79
79
  sessionTranscriptDir,
80
80
  worseConnectivityOutcome,
81
81
  wrapScheduledTaskPrompt
82
- } from "./chunk-4WAUXFY7.js";
82
+ } from "./chunk-UDJINPUK.js";
83
83
  import {
84
84
  classifyUnanswerablePane,
85
85
  isConsumerTermsDialogVisible,
@@ -7122,7 +7122,7 @@ function exchangeFailureKind(err) {
7122
7122
  }
7123
7123
 
7124
7124
  // src/lib/api-client.ts
7125
- var agtCliVersion = true ? "0.28.1077" : "dev";
7125
+ var agtCliVersion = true ? "0.28.1078" : "dev";
7126
7126
  var lastConfigHash = null;
7127
7127
  function setConfigHash(hash) {
7128
7128
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12095,4 +12095,4 @@ export {
12095
12095
  managerInstallSystemUnitCommand,
12096
12096
  managerUninstallSystemUnitCommand
12097
12097
  };
12098
- //# sourceMappingURL=chunk-RAIBOJ2A.js.map
12098
+ //# sourceMappingURL=chunk-R5IN7H32.js.map
@@ -1170,6 +1170,34 @@ function formatEmptyChannelAllowlistLines() {
1170
1170
  ` the removal (ENG-9663).`
1171
1171
  ];
1172
1172
  }
1173
+ var EMAIL_MAIL_RULES_DEF = "email.mail_rules";
1174
+ var MAIL_RULE_DISPOSITION_TEXT = {
1175
+ egress: "forwards or redirects mail to another address",
1176
+ suppression: "hides mail from its owner (trash, delete, archive or mark as read)",
1177
+ opaque: "has an effect that can't be read from the request (including deleting a rule)"
1178
+ };
1179
+ function formatMailRuleHoldLines(hold) {
1180
+ const which = hold.heldDispositions.map((d) => ` - a rule that ${MAIL_RULE_DISPOSITION_TEXT[d] ?? d}`);
1181
+ if (hold.live) {
1182
+ return [
1183
+ ` The platform holds these mail-rule changes for an Approve/Deny card, and approving`,
1184
+ ` the card releases the change:`,
1185
+ ...which,
1186
+ ` When asked for one, attempt it: do not decline on this guardrail's basis. Tell the`,
1187
+ ` user it is waiting for approval, and do not say it was made until it is approved.`
1188
+ ];
1189
+ }
1190
+ return [` Not held by the platform yet: these mail-rule changes go through and are only recorded:`, ...which];
1191
+ }
1192
+ function effectiveMailRuleEnforcement(g) {
1193
+ if (g.definitionId !== EMAIL_MAIL_RULES_DEF)
1194
+ return g.enforcement;
1195
+ if (g.mailRuleHold === void 0)
1196
+ return g.enforcement;
1197
+ if (g.enforcement !== "enforce")
1198
+ return g.enforcement;
1199
+ return g.mailRuleHold.live ? "warn" : "log";
1200
+ }
1173
1201
  function renderGuardrailBullet(g) {
1174
1202
  const lines = [];
1175
1203
  const header = `- **${g.displayName}** (${g.category}, from ${g.source})`;
@@ -1177,7 +1205,7 @@ function renderGuardrailBullet(g) {
1177
1205
  if (g.description?.trim()) {
1178
1206
  lines.push(` ${g.description.trim()}`);
1179
1207
  }
1180
- lines.push(...g.definitionId === EMAIL_DOMAIN_RESTRICT_DEF ? formatEmailDomainConfigLines(g.config) : g.definitionId === CALENDAR_CONFIDENTIALITY_DEF ? formatCalendarConfidentialityLines(g.config) : (
1208
+ lines.push(...g.definitionId === EMAIL_DOMAIN_RESTRICT_DEF ? formatEmailDomainConfigLines(g.config) : g.definitionId === CALENDAR_CONFIDENTIALITY_DEF ? formatCalendarConfidentialityLines(g.config) : g.definitionId === EMAIL_MAIL_RULES_DEF && g.mailRuleHold ? formatMailRuleHoldLines(g.mailRuleHold) : (
1181
1209
  // ENG-9663: checked AFTER the two named formatters, so an email or
1182
1210
  // calendar guardrail can never be captured by the structural match.
1183
1211
  hasEmptyChannelAllowlist(g) ? formatEmptyChannelAllowlistLines() : formatConfigLines(g.config)
@@ -1306,9 +1334,12 @@ function buildGuardrailsSection(guardrails) {
1306
1334
  const active = guardrails.map((g) => {
1307
1335
  const enforcement = effectiveChannelAllowlistEnforcement({
1308
1336
  ...g,
1309
- enforcement: effectiveEmailEnforcement({
1337
+ enforcement: effectiveMailRuleEnforcement({
1310
1338
  ...g,
1311
- enforcement: effectiveCalendarEnforcement(g)
1339
+ enforcement: effectiveEmailEnforcement({
1340
+ ...g,
1341
+ enforcement: effectiveCalendarEnforcement(g)
1342
+ })
1312
1343
  })
1313
1344
  });
1314
1345
  return { ...g, enforcement };
@@ -16127,4 +16158,4 @@ export {
16127
16158
  peekCurrentSession,
16128
16159
  readDailySessionPin
16129
16160
  };
16130
- //# sourceMappingURL=chunk-4WAUXFY7.js.map
16161
+ //# sourceMappingURL=chunk-UDJINPUK.js.map