@integrity-labs/agt-cli 0.28.815 → 0.28.816

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-47VV63KT.js";
43
+ } from "../chunk-PNHF5TJN.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-UQKTHEYS.js";
48
+ } from "../chunk-5RZBTMBD.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-7DTMJSAF.js";
82
+ } from "../chunk-SZ47B4KO.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.815" : "dev";
5470
+ var cliVersion = true ? "0.28.816" : "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.815" : "dev";
6661
+ var cliVersion2 = true ? "0.28.816" : "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) => {
@@ -18,7 +18,7 @@ import {
18
18
  rotateDailySession,
19
19
  sessionFileExists,
20
20
  todayLocalIso
21
- } from "./chunk-7DTMJSAF.js";
21
+ } from "./chunk-SZ47B4KO.js";
22
22
  import {
23
23
  reapOrphanChannelMcps
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5209,4 +5209,4 @@ export {
5209
5209
  stopAllSessionsAndWait,
5210
5210
  getProjectDir
5211
5211
  };
5212
- //# sourceMappingURL=chunk-UQKTHEYS.js.map
5212
+ //# sourceMappingURL=chunk-5RZBTMBD.js.map
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvIntegrations,
17
17
  shellQuote,
18
18
  summarizeUnanswerablePane
19
- } from "./chunk-UQKTHEYS.js";
19
+ } from "./chunk-5RZBTMBD.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -71,7 +71,7 @@ import {
71
71
  sessionTranscriptDir,
72
72
  worseConnectivityOutcome,
73
73
  wrapScheduledTaskPrompt
74
- } from "./chunk-7DTMJSAF.js";
74
+ } from "./chunk-SZ47B4KO.js";
75
75
  import {
76
76
  parsePsRows
77
77
  } from "./chunk-XWVM4KPK.js";
@@ -6523,7 +6523,7 @@ function exchangeFailureKind(err) {
6523
6523
  }
6524
6524
 
6525
6525
  // src/lib/api-client.ts
6526
- var agtCliVersion = true ? "0.28.815" : "dev";
6526
+ var agtCliVersion = true ? "0.28.816" : "dev";
6527
6527
  var lastConfigHash = null;
6528
6528
  function setConfigHash(hash) {
6529
6529
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10818,4 +10818,4 @@ export {
10818
10818
  managerInstallSystemUnitCommand,
10819
10819
  managerUninstallSystemUnitCommand
10820
10820
  };
10821
- //# sourceMappingURL=chunk-47VV63KT.js.map
10821
+ //# sourceMappingURL=chunk-PNHF5TJN.js.map
@@ -386,16 +386,15 @@ function shouldWarnClaudeMdOverBudget(codeName, size, nowMs = Date.now()) {
386
386
  function buildMemorySection() {
387
387
  const recall = `### Recall
388
388
 
389
- Before answering questions about past work, decisions, or preferences, **search
390
- first with \`context_search\`** \u2014 semantic search over knowledge, memories and past
391
- tasks. It reaches everything you have written; reading \`MEMORY.md\` and today's log
392
- only reaches what you already thought to look for. Fall back to those files
393
- directly if the search returns nothing.
389
+ **Search first with \`context_search\`** \u2014 semantic search over knowledge, memories
390
+ and past tasks. Search before answering questions about past work, decisions or
391
+ preferences, and before ACTING where a stored preference could set a default:
392
+ filing a ticket, sending a message. \`MEMORY.md\` and today's log reach only what
393
+ you already thought to look for; fall back to them if it finds nothing.
394
394
  `;
395
395
  return `## Memory
396
396
 
397
- A file-based memory system \u2014 persist important information so future sessions have
398
- context. Two Markdown file types:
397
+ Persist what future sessions will need. Two Markdown file types:
399
398
 
400
399
  1. **Daily logs** (\`memory/YYYY-MM-DD.md\`): append-only operational notes for the
401
400
  day \u2014 what you worked on, decisions, blockers, outcomes. New file each day.
@@ -5463,6 +5462,29 @@ var FLAG_REGISTRY = [
5463
5462
  // which is the ADR-0022 sensitive-flag shape.
5464
5463
  sensitive: true
5465
5464
  },
5465
+ {
5466
+ key: "host-alarm-reconciler-repair",
5467
+ description: "Arms the CREATE and DRIFT-REPAIR halves of the ENG-8325 host-alarm reconciler. The cron computes and LOGS the full diff for every host on every run regardless of this flag, on the host-poll-rate-alarm precedent, so the fleet diff is measurable before anything mutates. Off = measure and log, create nothing and re-put nothing. Evaluated PER ORGANIZATION from the host row, so arming can be staged one org at a time and watched. It does NOT gate the reap - see host-alarm-reconciler-reap, which is deliberately fleet-wide because an orphan alarm whose host row is gone has no organization to scope by. AGT_HOST_ALARM_RECONCILER_APPLY outranks this flag and forces BOTH gates on fleet-wide; it is deliberately not declared as this flag's envVar, because it is a master override of two flags rather than the operator override of this one. Boolean gate; ships dark. Evaluated API-side, in the cron.",
5468
+ flagType: "boolean",
5469
+ // Safe value is `false` for a specific reason, not a habitual one: the
5470
+ // first applying run creates one alarm per host that lacks one, and a
5471
+ // PutMetricAlarm on a fleet whose expected set is wrong is not a no-op you
5472
+ // can shrug off - it is monitoring that now exists and will page.
5473
+ defaultValue: false,
5474
+ // It mutates CloudWatch for every host in the armed org, which is the
5475
+ // ADR-0022 sensitive-flag shape.
5476
+ sensitive: true
5477
+ },
5478
+ {
5479
+ key: "host-alarm-reconciler-reap",
5480
+ description: "Arms the REAP half of the ENG-8325 host-alarm reconciler: deleting alarms under augmented/{env}/host/ whose parsed host id is not in the live set. Off = count and name the orphan candidates, delete nothing. DELIBERATELY EVALUATED GLOBALLY, with no organization scope, and that is not an oversight to be tidied up later. An orphan is defined as an alarm whose host id resolves to no live host; where the host row is gone entirely there is no organization to scope by, so the property that makes an alarm an orphan is the same one that makes it unattributable. A per-org gate here would silently reap other orgs' orphans the moment any one org was armed, which is staged creates with an unstaged reap - the more dangerous half. AGT_HOST_ALARM_RECONCILER_APPLY outranks this flag and forces both gates on. Boolean gate; ships dark. Evaluated API-side, in the cron.",
5481
+ flagType: "boolean",
5482
+ // The destructive half. Measured on prod 2026-09-03: a first applying run
5483
+ // deletes 84 alarms across 33 dead instance ids. Nothing about that is
5484
+ // recoverable by re-running, so the safe value is not a formality.
5485
+ defaultValue: false,
5486
+ sensitive: true
5487
+ },
5466
5488
  {
5467
5489
  key: "agt-version-drift-alarm",
5468
5490
  description: "Arms the ENG-8341 agt CLI version-drift alert. When a host has fallen behind its EFFECTIVE target (env pin > DB pin > release channel) across two or more of its OWN maintenance windows, the monitor opens a host_agt_version_drift alert. OBSERVE-FIRST rollout gate: the cron computes and LOGS the drift for every host on every run regardless of this flag, so the real fleet spread is measurable before anyone is paged - the ticket asks for the threshold to be set from observed data rather than a guess. Off = compute and log, open nothing. Boolean gate; ships dark. Evaluated API-side, in the cron.",
@@ -5494,6 +5516,12 @@ var FLAG_REGISTRY = [
5494
5516
  // flip wants a deliberate confirm rather than a casual toggle. Before flipping,
5495
5517
  // check which orgs sit at the `enforce` / `require_approval` email-guard stage:
5496
5518
  // those are the ones where a newly-effective policy can reach a real block.
5519
+ //
5520
+ // Run that pre-flight per `docs/runbooks/org-email-domain-derivation-rollout.md`,
5521
+ // and read it before acting on the result: the dry run reports `would-derive`
5522
+ // for orgs where arming is provably inert (an unverified row for the candidate
5523
+ // domain makes the insert collide and write nothing), so the report reads as
5524
+ // riskier than it is and invites per-org overrides that are not needed.
5497
5525
  sensitive: true
5498
5526
  },
5499
5527
  {
@@ -13775,4 +13803,4 @@ export {
13775
13803
  peekCurrentSession,
13776
13804
  readDailySessionPin
13777
13805
  };
13778
- //# sourceMappingURL=chunk-7DTMJSAF.js.map
13806
+ //# sourceMappingURL=chunk-SZ47B4KO.js.map