@integrity-labs/agt-cli 0.28.611 → 0.28.613

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,10 +40,10 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-6L5WLLVR.js";
43
+ } from "../chunk-D7EV77TB.js";
44
44
  import {
45
45
  readDirectChatSessionState
46
- } from "../chunk-DD6NRRYC.js";
46
+ } from "../chunk-JRL7754L.js";
47
47
  import {
48
48
  AnchorSessionClient,
49
49
  CHANNEL_REGISTRY,
@@ -73,7 +73,7 @@ import {
73
73
  requiredMcpWildcard,
74
74
  resolveChannels,
75
75
  serializeManifestForSlackCli
76
- } from "../chunk-2ASO4HVN.js";
76
+ } from "../chunk-ZQXXK7JC.js";
77
77
  import "../chunk-XWVM4KPK.js";
78
78
 
79
79
  // src/bin/agt.ts
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
4909
4909
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4910
4910
  import chalk18 from "chalk";
4911
4911
  import ora16 from "ora";
4912
- var cliVersion = true ? "0.28.611" : "dev";
4912
+ var cliVersion = true ? "0.28.613" : "dev";
4913
4913
  async function fetchLatestVersion() {
4914
4914
  const host2 = getHost();
4915
4915
  if (!host2) return null;
@@ -6089,7 +6089,7 @@ function handleError(err) {
6089
6089
  }
6090
6090
 
6091
6091
  // src/bin/agt.ts
6092
- var cliVersion2 = true ? "0.28.611" : "dev";
6092
+ var cliVersion2 = true ? "0.28.613" : "dev";
6093
6093
  var program = new Command();
6094
6094
  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");
6095
6095
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7,7 +7,7 @@ import {
7
7
  expandTemplateVars,
8
8
  isolationMode,
9
9
  parseEnvIntegrations
10
- } from "./chunk-DD6NRRYC.js";
10
+ } from "./chunk-JRL7754L.js";
11
11
  import {
12
12
  BIND_FAILURE_QUARANTINE_THRESHOLD,
13
13
  INTEGRATIONS_SECTION_END,
@@ -48,7 +48,7 @@ import {
48
48
  resolveConnectivityProbe,
49
49
  worseConnectivityOutcome,
50
50
  wrapScheduledTaskPrompt
51
- } from "./chunk-2ASO4HVN.js";
51
+ } from "./chunk-ZQXXK7JC.js";
52
52
  import {
53
53
  parsePsRows
54
54
  } from "./chunk-XWVM4KPK.js";
@@ -6030,7 +6030,7 @@ function exchangeFailureKind(err) {
6030
6030
  }
6031
6031
 
6032
6032
  // src/lib/api-client.ts
6033
- var agtCliVersion = true ? "0.28.611" : "dev";
6033
+ var agtCliVersion = true ? "0.28.613" : "dev";
6034
6034
  var lastConfigHash = null;
6035
6035
  function setConfigHash(hash) {
6036
6036
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9505,4 +9505,4 @@ export {
9505
9505
  managerInstallSystemUnitCommand,
9506
9506
  managerUninstallSystemUnitCommand
9507
9507
  };
9508
- //# sourceMappingURL=chunk-6L5WLLVR.js.map
9508
+ //# sourceMappingURL=chunk-D7EV77TB.js.map
@@ -16,7 +16,7 @@ import {
16
16
  rotateDailySession,
17
17
  sessionFileExists,
18
18
  todayLocalIso
19
- } from "./chunk-2ASO4HVN.js";
19
+ } from "./chunk-ZQXXK7JC.js";
20
20
  import {
21
21
  reapOrphanChannelMcps
22
22
  } from "./chunk-XWVM4KPK.js";
@@ -4349,4 +4349,4 @@ export {
4349
4349
  stopAllSessionsAndWait,
4350
4350
  getProjectDir
4351
4351
  };
4352
- //# sourceMappingURL=chunk-DD6NRRYC.js.map
4352
+ //# sourceMappingURL=chunk-JRL7754L.js.map
@@ -3638,7 +3638,14 @@ var AGENT_DIRECTED_NOTICE_KINDS = [
3638
3638
  // written for the machine. The user learns the same fact from the connect card
3639
3639
  // in that conversation flipping to its connected state, so showing this row as
3640
3640
  // well would say it twice, the second time in prose aimed at an agent.
3641
- "integration_connected"
3641
+ "integration_connected",
3642
+ // ENG-8745. The offer RESULT receipt (not the offer card — that one is
3643
+ // written for the human and is how they decided). Its content opens "Your
3644
+ // offer was ACCEPTED", carries an `[offer_result]` machine tag, and closes by
3645
+ // instructing the agent what not to do ("do not re-raise it yourself"). The
3646
+ // human needs none of it: they are the person who tapped the button, and the
3647
+ // card swapped under their finger to say so.
3648
+ "offer_result"
3642
3649
  ];
3643
3650
  var AGENT_DIRECTED_KIND_SET = new Set(AGENT_DIRECTED_NOTICE_KINDS);
3644
3651
 
@@ -4119,6 +4126,29 @@ var KANBAN_NUDGE_ACTIONABLE_STATUSES = ["todo", "in_progress"];
4119
4126
 
4120
4127
  // ../../packages/core/dist/feature-flags/registry.js
4121
4128
  var FLAG_REGISTRY = [
4129
+ {
4130
+ key: "impersonation-enabled",
4131
+ description: "Kill switch for admin impersonation (ENG-9080), filed during the 18 Aug cross-tenant identity incident. ON (default) = impersonation works as today. OFF = both halves of the flow refuse: the mint route stops issuing redeem URLs, and \u2014 the half that actually matters \u2014 the REDEEM route refuses before it inserts the nonce or calls generateLink, so a URL that was already issued cannot still mint a session. Redeem tokens live REDEEM_TTL_SECONDS = 300, so gating only the mint route would leave five minutes in which new sessions keep appearing after an operator believes they have stopped it. Evaluated as a GLOBAL stage value, read UNCACHED on the redeem path (see readImpersonationEnabled): a kill switch that takes a cache TTL to bite is not a kill switch. Containment only \u2014 it does not fix the underlying defect that redeem writes the target's cookies into whatever browser context opens the URL (ENG-8923 / ENG-9020).",
4132
+ flagType: "boolean",
4133
+ // Declared safe value is `true` = impersonation available, i.e. today's
4134
+ // behaviour, so merging this changes nothing until an operator flips it.
4135
+ //
4136
+ // NOTE the asymmetry with the other gates in this file, and it is
4137
+ // deliberate: their safe direction is "off / don't do the new thing"
4138
+ // because they gate NEW behaviour. This one gates EXISTING behaviour, so
4139
+ // the no-op default is `true`. The READ direction is where the safety lives
4140
+ // instead — an unreachable flag store resolves to DISABLED, not to this
4141
+ // default. See readImpersonationEnabled for that argument.
4142
+ defaultValue: true,
4143
+ // Enforcement gate (ADR-0022 section 4): re-enabling impersonation is
4144
+ // "relaxing a security control", exactly the mutation that must not happen
4145
+ // on a single unguarded write. The emergency direction (turning it OFF)
4146
+ // costs one confirmation, which is the right price.
4147
+ sensitive: true
4148
+ // Deliberately NOT public. A browser has no business evaluating whether
4149
+ // impersonation is available; both consumers are server-side route
4150
+ // handlers.
4151
+ },
4122
4152
  {
4123
4153
  key: "at-rest-v2-writes",
4124
4154
  description: "ADR-0061 A2\u2192arm cutover (ENG-8944, parent ENG-8764). Gates whether the at-rest writer (encryptSecret/encryptAtRest) emits the v2 AAD-bound envelope when a DecryptContext is supplied; OFF (default) = the legacy v1 envelope (pre-ADR-0061 behaviour). Resolved FLEET-WIDE and process-global via setV2WritesArmed at the API + webapp + cron bootstrap seams, so ONLY the stage value applies \u2014 per-org overrides do not (the crypto writer carries no request/org context). Ships dark. Flip on only once every reader parses v2 (fleet-wide since release A1) AND the re-seal engine can re-seal v2 blobs before any AUTH_ENCRYPTION_KEY rotation (slice 5b). Reversible without redeploy: clearing it returns the writer to v1 within the flag cache TTL; already-written v2 blobs stay readable.",
@@ -11934,4 +11964,4 @@ export {
11934
11964
  minutesSinceLocalMidnight,
11935
11965
  peekCurrentSession
11936
11966
  };
11937
- //# sourceMappingURL=chunk-2ASO4HVN.js.map
11967
+ //# sourceMappingURL=chunk-ZQXXK7JC.js.map