@integrity-labs/agt-cli 0.28.769 → 0.28.770

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
@@ -41,12 +41,12 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-6XPTQR7W.js";
44
+ } from "../chunk-E4YS6E4T.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
48
48
  readDirectChatSessionState
49
- } from "../chunk-THSP5NB6.js";
49
+ } from "../chunk-R6XGVTQS.js";
50
50
  import {
51
51
  AnchorSessionClient,
52
52
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-MBUWL4UL.js";
82
+ } from "../chunk-UPSDSMNC.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -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.769" : "dev";
5470
+ var cliVersion = true ? "0.28.770" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.769" : "dev";
6661
+ var cliVersion2 = true ? "0.28.770" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -14,7 +14,7 @@ import {
14
14
  parseEnvFileEntries,
15
15
  parseEnvIntegrations,
16
16
  shellQuote
17
- } from "./chunk-THSP5NB6.js";
17
+ } from "./chunk-R6XGVTQS.js";
18
18
  import {
19
19
  BIND_FAILURE_QUARANTINE_THRESHOLD,
20
20
  INTEGRATIONS_SECTION_END,
@@ -64,7 +64,7 @@ import {
64
64
  sessionTranscriptDir,
65
65
  worseConnectivityOutcome,
66
66
  wrapScheduledTaskPrompt
67
- } from "./chunk-MBUWL4UL.js";
67
+ } from "./chunk-UPSDSMNC.js";
68
68
  import {
69
69
  parsePsRows
70
70
  } from "./chunk-XWVM4KPK.js";
@@ -6452,7 +6452,7 @@ function exchangeFailureKind(err) {
6452
6452
  }
6453
6453
 
6454
6454
  // src/lib/api-client.ts
6455
- var agtCliVersion = true ? "0.28.769" : "dev";
6455
+ var agtCliVersion = true ? "0.28.770" : "dev";
6456
6456
  var lastConfigHash = null;
6457
6457
  function setConfigHash(hash) {
6458
6458
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10655,4 +10655,4 @@ export {
10655
10655
  managerInstallSystemUnitCommand,
10656
10656
  managerUninstallSystemUnitCommand
10657
10657
  };
10658
- //# sourceMappingURL=chunk-6XPTQR7W.js.map
10658
+ //# sourceMappingURL=chunk-E4YS6E4T.js.map
@@ -18,7 +18,7 @@ import {
18
18
  rotateDailySession,
19
19
  sessionFileExists,
20
20
  todayLocalIso
21
- } from "./chunk-MBUWL4UL.js";
21
+ } from "./chunk-UPSDSMNC.js";
22
22
  import {
23
23
  reapOrphanChannelMcps
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5141,4 +5141,4 @@ export {
5141
5141
  stopAllSessionsAndWait,
5142
5142
  getProjectDir
5143
5143
  };
5144
- //# sourceMappingURL=chunk-THSP5NB6.js.map
5144
+ //# sourceMappingURL=chunk-R6XGVTQS.js.map
@@ -829,10 +829,18 @@ function formatEmailDomainConfigLines(config) {
829
829
  const stage = typeof config.stage === "string" ? config.stage : void 0;
830
830
  const enforceLive = config.enforce_live === true;
831
831
  const approvalLive = config.approval_live === true;
832
+ const approvalCoveredActions = stringList(config.approval_covered_actions);
832
833
  if (stage) {
833
834
  lines.push(` - stage: ${stage}`);
834
835
  if (stage === "require_approval" && approvalLive) {
835
- 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.*`);
836
+ if (approvalCoveredActions.length > 0) {
837
+ lines.push(` *SCOPE - read this before you rely on the hold below. It is not universal. It engages for these mail actions and no others: ${approvalCoveredActions.join(", ")}. Every other route to sending mail is UNHELD and fails open - a provider or tool not named here, a draft-send whose recipients the platform cannot read from the call, a mail rule or filter, or any new integration nobody has wired into the hold yet. Nothing catches those. For them, produce the draft, hand it to a human, and let them send it.*`);
838
+ } else {
839
+ lines.push(` *SCOPE - the hold below does NOT cover every route to sending mail, and this host does not report which routes it covers. Where you cannot confirm a send is covered - an unusual provider or tool, a mail rule or filter, a draft-send whose recipients are not in the call - treat it as unheld: produce the draft and hand it to a human.*`);
840
+ }
841
+ lines.push(` *Human approval: sending to a non-allowed domain is allowed but routed to a person for approval. Attempt the send as you normally would - do NOT refuse it outright, and do NOT tell the user to go and send it themselves: the platform is configured to hold it and route it to an approver (an Approve/Deny card), and you are told the outcome. Two limits on that. (1) An explicit user instruction WINS: if the user asked you to route it for their review, to leave it in drafts, or to check with them before it goes, do THAT - leave the message unsent and tell them it is ready. Their instruction is not satisfied by the platform's hold. (2) Do NOT assume the hold engaged. If the send tool returns a sent/delivered result rather than a pending/held one, the hold did not fire - say so plainly in the same turn, treat the message as already gone, and do not send again to a non-allowed domain until a human confirms the gate is working.*`);
842
+ } else if (stage === "require_approval") {
843
+ lines.push(` *Currently observe-only for approval: the API records the domain decision to guardrail_audit_log but does not block sends at this stage, and approval routing is NOT armed - so nothing would hold a message to a non-allowed domain. It would go straight out. Do NOT send one. Prepare it as a draft, tell the user it is ready and needs them to send it, and let them decide. This is deliberate fail-closed behaviour: a hold the platform cannot confirm is treated as no hold at all. Treat the restriction as authoritative guidance; the runtime flip is operator-side.*`);
836
844
  } else if (!(stage === "enforce" && enforceLive)) {
837
845
  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.*`);
838
846
  }
@@ -898,7 +906,7 @@ function effectiveEmailEnforcement(g) {
898
906
  return g.enforcement;
899
907
  if (stage === "warn")
900
908
  return g.enforcement === "enforce" ? "warn" : g.enforcement;
901
- if (stage === "require_approval" && g.config?.["approval_live"] === true) {
909
+ if (stage === "require_approval") {
902
910
  return g.enforcement === "enforce" ? "warn" : g.enforcement;
903
911
  }
904
912
  return "log";
@@ -2831,6 +2839,9 @@ function classifyActor(lastActorId, selfAgentId) {
2831
2839
  return "unknown";
2832
2840
  }
2833
2841
 
2842
+ // ../../packages/core/dist/types/model-policy.js
2843
+ var KNOWN_MODEL_POLICY_SLOTS = [...KNOWN_MODEL_SLOTS].sort();
2844
+
2834
2845
  // ../../packages/core/dist/types/integration.js
2835
2846
  var HITL_TIER_ORDER = [
2836
2847
  "read",
@@ -13336,4 +13347,4 @@ export {
13336
13347
  peekCurrentSession,
13337
13348
  readDailySessionPin
13338
13349
  };
13339
- //# sourceMappingURL=chunk-MBUWL4UL.js.map
13350
+ //# sourceMappingURL=chunk-UPSDSMNC.js.map