@integrity-labs/agt-cli 0.28.541 → 0.28.543

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-JQNSKZIC.js";
43
+ } from "../chunk-VGOV5SSL.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -71,7 +71,7 @@ import {
71
71
  requiredMcpWildcard,
72
72
  resolveChannels,
73
73
  serializeManifestForSlackCli
74
- } from "../chunk-F63RM2RQ.js";
74
+ } from "../chunk-QDCKLUU7.js";
75
75
  import "../chunk-XWVM4KPK.js";
76
76
 
77
77
  // src/bin/agt.ts
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
4834
4834
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4835
4835
  import chalk18 from "chalk";
4836
4836
  import ora16 from "ora";
4837
- var cliVersion = true ? "0.28.541" : "dev";
4837
+ var cliVersion = true ? "0.28.543" : "dev";
4838
4838
  async function fetchLatestVersion() {
4839
4839
  const host2 = getHost();
4840
4840
  if (!host2) return null;
@@ -6006,7 +6006,7 @@ function handleError(err) {
6006
6006
  }
6007
6007
 
6008
6008
  // src/bin/agt.ts
6009
- var cliVersion2 = true ? "0.28.541" : "dev";
6009
+ var cliVersion2 = true ? "0.28.543" : "dev";
6010
6010
  var program = new Command();
6011
6011
  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");
6012
6012
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -3558,9 +3558,10 @@ function formatEmailDomainConfigLines(config) {
3558
3558
  }
3559
3559
  const stage = typeof config.stage === "string" ? config.stage : void 0;
3560
3560
  const enforceLive = config.enforce_live === true;
3561
+ const approvalLive = config.approval_live === true;
3561
3562
  if (stage) {
3562
3563
  lines.push(` - stage: ${stage}`);
3563
- if (stage === "require_approval") {
3564
+ if (stage === "require_approval" && approvalLive) {
3564
3565
  lines.push(` *Human approval: sending to a non-allowed domain is allowed but held for a person to approve. You MUST attempt the send as you normally would - do NOT refuse it and do NOT tell the user to send it themselves. The platform automatically holds the send and routes it to an approver (an Approve/Deny card); it executes if approved, is blocked if denied, and you are told the outcome. Just send; the approval is handled for you.*`);
3565
3566
  } else if (!(stage === "enforce" && enforceLive)) {
3566
3567
  lines.push(` *Currently observe-only: the API records domain decisions to guardrail_audit_log but does not block sends at this stage. Honor the restriction as authoritative guidance; the runtime flip is operator-side.*`);
@@ -3627,8 +3628,9 @@ function effectiveEmailEnforcement(g) {
3627
3628
  return g.enforcement;
3628
3629
  if (stage === "warn")
3629
3630
  return g.enforcement === "enforce" ? "warn" : g.enforcement;
3630
- if (stage === "require_approval")
3631
+ if (stage === "require_approval" && g.config?.["approval_live"] === true) {
3631
3632
  return g.enforcement === "enforce" ? "warn" : g.enforcement;
3633
+ }
3632
3634
  return "log";
3633
3635
  }
3634
3636
  function buildGuardrailsSection(guardrails) {
@@ -15692,4 +15694,4 @@ export {
15692
15694
  stopAllSessionsAndWait,
15693
15695
  getProjectDir
15694
15696
  };
15695
- //# sourceMappingURL=chunk-F63RM2RQ.js.map
15697
+ //# sourceMappingURL=chunk-QDCKLUU7.js.map