@integrity-labs/agt-cli 0.28.1111 → 0.28.1112

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-2UHVPGB3.js";
43
+ } from "../chunk-TJUDOE53.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-4PTXGOVO.js";
48
+ } from "../chunk-5EYINOIW.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-TZM6YVE7.js";
82
+ } from "../chunk-NO57I56V.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.1111" : "dev";
5477
+ var cliVersion = true ? "0.28.1112" : "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.1111" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1112" : "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-TZM6YVE7.js";
27
+ } from "./chunk-NO57I56V.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-4PTXGOVO.js.map
6116
+ //# sourceMappingURL=chunk-5EYINOIW.js.map
@@ -7575,14 +7575,37 @@ var FLAG_REGISTRY = [
7575
7575
  },
7576
7576
  {
7577
7577
  key: "platform-maintenance-mode",
7578
- description: 'Platform-wide maintenance mode (ENG-6506): when on, every agent across every team/org auto-replies to admitted human inbound with a "we are offline for maintenance" notice instead of dispatching to the agent \u2014 for whole-platform downtime such as DB upgrades. Read host-side per inbound from the flags cache (no MCP restart). Boolean gate; ships dark \u2014 when off, channels behave exactly as today. (Proactive "back online" follow-up is the ENG-6508 fast-follow, not this flag.)',
7579
- flagType: "boolean",
7580
- // Declared safe value is `false` (normal operation). Fail-safe direction: a
7581
- // flag-DB read error or absent flag map must never silence the fleet on its
7582
- // own — agents stay responsive unless an operator deliberately flips this on
7583
- // from the admin Feature Flags page. No envVar: net-new control, no
7584
- // pre-flags env gate to migrate.
7585
- defaultValue: false,
7578
+ description: 'Platform-wide maintenance mode (ENG-6506; widened to modes by ENG-11436). off = normal operation (ships dark; channels behave exactly as today). tools-offline = every agent KEEPS conversing but every Augmented tool that WRITES to the control plane refuses with a reason, so nothing is created during a window whose database restore would discard it; reads are untouched. fleet-offline = the previous boolean-true behaviour AND the write gate: admitted human inbound gets a "we are offline for maintenance" notice instead of being dispatched, for whole-platform downtime such as DB upgrades. The modes are CUMULATIVE \u2014 fleet-offline gates writes too, because silencing channel inbound does not stop a /loop or a scheduled task filing work. Read host-side per inbound and per tool call from the flags cache (no MCP restart). (Proactive "back online" follow-up is the ENG-6508 fast-follow, not this flag.)',
7579
+ flagType: "enum",
7580
+ allowedValues: ["off", "tools-offline", "fleet-offline"],
7581
+ // Declared safe value is `off` (normal operation). Fail-safe direction: a
7582
+ // flag-DB read error or absent flag map must never silence the fleet OR take
7583
+ // its write tools away on its own — agents stay fully functional unless an
7584
+ // operator deliberately sets a mode from the admin Feature Flags page. No
7585
+ // envVar: net-new control, no pre-flags env gate to migrate.
7586
+ //
7587
+ // ENG-11436 widened this from a boolean rather than adding a second flag, so
7588
+ // there is ONE operator control whose modes are mutually exclusive by type
7589
+ // instead of two similar booleans with four combinations.
7590
+ //
7591
+ // The host resolver GRANDFATHERS a boolean-shaped cache value
7592
+ // (true -> fleet-offline, false -> off), and the DIRECTION it protects is
7593
+ // narrower than an earlier version of this comment claimed (Obi Wan
7594
+ // `e3f0d2c154b9` on #6903). It said "an older manager still writing a boolean
7595
+ // must not make a central flip a silent no-op". That situation cannot arise:
7596
+ // once this registry change deploys, normalizeFlagValue only ever yields one
7597
+ // of the three strings, feature-flags-host.ts writes the heartbeat map
7598
+ // verbatim, so no manager writes a boolean again. What grandfathering
7599
+ // actually covers is a NEW MCP reading a STALE PRE-DEPLOY cache that still
7600
+ // holds one.
7601
+ //
7602
+ // The direction that DOES happen is not handled and cannot be: an OLD MCP
7603
+ // reads the new string with resolveHostBooleanFlag, gets undefined, and keeps
7604
+ // dispatching. That is a real regression against ENG-6506 until the fleet
7605
+ // converges, and it is why the runbook makes convergence a deploy-order
7606
+ // PRECONDITION rather than offering a boolean fallback — there is none, since
7607
+ // an enum flag rejects `{value: true}` with a 400.
7608
+ defaultValue: "off",
7586
7609
  // Flipping this takes the ENTIRE fleet offline to end users; a mis-flip is a
7587
7610
  // platform-wide availability incident, so mutations require explicit
7588
7611
  // confirmation (the admin flip-reach modal).
@@ -16603,4 +16626,4 @@ export {
16603
16626
  peekCurrentSession,
16604
16627
  readDailySessionPin
16605
16628
  };
16606
- //# sourceMappingURL=chunk-TZM6YVE7.js.map
16629
+ //# sourceMappingURL=chunk-NO57I56V.js.map