@integrity-labs/agt-cli 0.28.1252 → 0.28.1253

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.
Files changed (32) hide show
  1. package/dist/{api-client-6A36YH3M.js → api-client-5ZXNFF4W.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-XTFVVZIR.js → chunk-233HXJ2D.js} +2 -2
  4. package/dist/{chunk-5ZNYCNMI.js → chunk-2HF77X4C.js} +3 -3
  5. package/dist/{chunk-4VOQ6D7X.js → chunk-CMLBFY5C.js} +2 -2
  6. package/dist/{chunk-3HRBU4H6.js → chunk-GRTMENH5.js} +3 -3
  7. package/dist/{chunk-S3DUSCWR.js → chunk-UBGHZ2O2.js} +5 -5
  8. package/dist/{chunk-RUKGOBVA.js → chunk-UHT6L77A.js} +22 -7
  9. package/dist/{chunk-RUKGOBVA.js.map → chunk-UHT6L77A.js.map} +1 -1
  10. package/dist/{claude-code-updater-WSQTK6TQ.js → claude-code-updater-EKABTDXO.js} +3 -3
  11. package/dist/{claude-pair-runtime-WWF5BCK3.js → claude-pair-runtime-ZA24UQ7V.js} +3 -3
  12. package/dist/lib/manager-worker.js +21 -21
  13. package/dist/mcp/direct-chat-channel.js +21 -6
  14. package/dist/mcp/index.js +22 -7
  15. package/dist/mcp/origami.js +21 -6
  16. package/dist/mcp/slack-channel.js +21 -6
  17. package/dist/mcp/telegram-channel.js +21 -6
  18. package/dist/{persistent-session-HS33PGZZ.js → persistent-session-HXK2Z6GH.js} +4 -4
  19. package/dist/{responsiveness-probe-32AWSVSL.js → responsiveness-probe-TPKISRGQ.js} +4 -4
  20. package/dist/{session-auth-dead-2L2NLMMB.js → session-auth-dead-KMB35KRB.js} +3 -3
  21. package/package.json +1 -1
  22. /package/dist/{api-client-6A36YH3M.js.map → api-client-5ZXNFF4W.js.map} +0 -0
  23. /package/dist/{chunk-XTFVVZIR.js.map → chunk-233HXJ2D.js.map} +0 -0
  24. /package/dist/{chunk-5ZNYCNMI.js.map → chunk-2HF77X4C.js.map} +0 -0
  25. /package/dist/{chunk-4VOQ6D7X.js.map → chunk-CMLBFY5C.js.map} +0 -0
  26. /package/dist/{chunk-3HRBU4H6.js.map → chunk-GRTMENH5.js.map} +0 -0
  27. /package/dist/{chunk-S3DUSCWR.js.map → chunk-UBGHZ2O2.js.map} +0 -0
  28. /package/dist/{claude-code-updater-WSQTK6TQ.js.map → claude-code-updater-EKABTDXO.js.map} +0 -0
  29. /package/dist/{claude-pair-runtime-WWF5BCK3.js.map → claude-pair-runtime-ZA24UQ7V.js.map} +0 -0
  30. /package/dist/{persistent-session-HS33PGZZ.js.map → persistent-session-HXK2Z6GH.js.map} +0 -0
  31. /package/dist/{responsiveness-probe-32AWSVSL.js.map → responsiveness-probe-TPKISRGQ.js.map} +0 -0
  32. /package/dist/{session-auth-dead-2L2NLMMB.js.map → session-auth-dead-KMB35KRB.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-XTFVVZIR.js";
16
+ } from "./chunk-233HXJ2D.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-RUKGOBVA.js";
18
+ import "./chunk-UHT6L77A.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-WSQTK6TQ.js.map
37
+ //# sourceMappingURL=claude-code-updater-EKABTDXO.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-RUKGOBVA.js";
11
+ } from "./chunk-UHT6L77A.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-HS33PGZZ.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-HXK2Z6GH.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-WWF5BCK3.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-ZA24UQ7V.js.map
@@ -69,7 +69,7 @@ import {
69
69
  tripClass,
70
70
  writeEtcEnvironment,
71
71
  writeProfileDScript
72
- } from "../chunk-S3DUSCWR.js";
72
+ } from "../chunk-UBGHZ2O2.js";
73
73
  import {
74
74
  ApiError,
75
75
  adoptHostKeyInProcess,
@@ -87,7 +87,7 @@ import {
87
87
  probeHostKey,
88
88
  requireHost,
89
89
  setConfigHash
90
- } from "../chunk-5ZNYCNMI.js";
90
+ } from "../chunk-2HF77X4C.js";
91
91
  import {
92
92
  BLOCKED_ON_PROMPT_DECISION,
93
93
  CHANNEL_SECRET_ENV_KEYS,
@@ -171,7 +171,7 @@ import {
171
171
  webFetchBaselineValue,
172
172
  webFetchRestartNeeded,
173
173
  writeEgressAllowlist
174
- } from "../chunk-3HRBU4H6.js";
174
+ } from "../chunk-GRTMENH5.js";
175
175
  import {
176
176
  isAgentIdle,
177
177
  isStaleForToday,
@@ -182,7 +182,7 @@ import {
182
182
  subagentActivityAgeSeconds,
183
183
  subagentTranscriptDir,
184
184
  transcriptActivityAgeSeconds
185
- } from "../chunk-4VOQ6D7X.js";
185
+ } from "../chunk-CMLBFY5C.js";
186
186
  import {
187
187
  classifyUnanswerablePane,
188
188
  focusedConfirmDialogBlock,
@@ -206,7 +206,7 @@ import {
206
206
  runSafeCleanup,
207
207
  tightestDiskStat,
208
208
  withPackageCacheLock
209
- } from "../chunk-XTFVVZIR.js";
209
+ } from "../chunk-233HXJ2D.js";
210
210
  import {
211
211
  parsePsRows,
212
212
  reapOrphanChannelMcps
@@ -333,7 +333,7 @@ import {
333
333
  stabiliseResetInstant,
334
334
  sumTranscriptUsageInWindow,
335
335
  summarizeTranscriptActivity
336
- } from "../chunk-RUKGOBVA.js";
336
+ } from "../chunk-UHT6L77A.js";
337
337
  import {
338
338
  CLAUDE_CONFIG_DIR_ENV,
339
339
  claudeConfigDirFor,
@@ -14133,7 +14133,7 @@ function createFileMigrationReportIO(codeName, log2) {
14133
14133
  };
14134
14134
  }
14135
14135
  var managerHostPost = async (path, body) => {
14136
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-6A36YH3M.js");
14136
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-5ZXNFF4W.js");
14137
14137
  try {
14138
14138
  const json = await api2.post(path, body);
14139
14139
  return { status: 200, json };
@@ -16172,7 +16172,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
16172
16172
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
16173
16173
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
16174
16174
  async function channelInboundActivityAgeSecondsFor(codeName) {
16175
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-32AWSVSL.js");
16175
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TPKISRGQ.js");
16176
16176
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
16177
16177
  if (newest === null) return null;
16178
16178
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16988,7 +16988,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16988
16988
  var lastVersionCheckAt = 0;
16989
16989
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16990
16990
  var lastResponsivenessProbeAt = 0;
16991
- var agtCliVersion = true ? "0.28.1252" : "dev";
16991
+ var agtCliVersion = true ? "0.28.1253" : "dev";
16992
16992
  function resolveBrewPath(execFileSync4) {
16993
16993
  try {
16994
16994
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18987,7 +18987,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18987
18987
  if (codeNames.length === 0) return;
18988
18988
  void (async () => {
18989
18989
  try {
18990
- const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
18990
+ const { collectDiagnostics } = await import("../persistent-session-HXK2Z6GH.js");
18991
18991
  await api.post("/host/heartbeat", {
18992
18992
  host_id: hostId,
18993
18993
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -19130,7 +19130,7 @@ async function pollCycleInner() {
19130
19130
  }
19131
19131
  try {
19132
19132
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
19133
- const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
19133
+ const { collectDiagnostics } = await import("../persistent-session-HXK2Z6GH.js");
19134
19134
  const diagCodeNames = [...agentState.persistentSessionAgents];
19135
19135
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
19136
19136
  let tailscaleHostname;
@@ -19395,7 +19395,7 @@ async function pollCycleInner() {
19395
19395
  }
19396
19396
  try {
19397
19397
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19398
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-WSQTK6TQ.js");
19398
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-EKABTDXO.js");
19399
19399
  const securityFloor = currentSecurityFloor();
19400
19400
  claudeUpdaterInFlight = true;
19401
19401
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19430,7 +19430,7 @@ async function pollCycleInner() {
19430
19430
  collectPanelessActivityProbes,
19431
19431
  getResponsivenessIntervalMs,
19432
19432
  occupancyQualificationClassifications
19433
- } = await import("../responsiveness-probe-32AWSVSL.js");
19433
+ } = await import("../responsiveness-probe-TPKISRGQ.js");
19434
19434
  const probeIntervalMs = getResponsivenessIntervalMs();
19435
19435
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19436
19436
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19547,7 +19547,7 @@ async function pollCycleInner() {
19547
19547
  collectResponsivenessProbes,
19548
19548
  livePendingInboundOldestAgeSeconds,
19549
19549
  parkPendingInbound
19550
- } = await import("../responsiveness-probe-32AWSVSL.js");
19550
+ } = await import("../responsiveness-probe-TPKISRGQ.js");
19551
19551
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19552
19552
  const wedgeNow = /* @__PURE__ */ new Date();
19553
19553
  const liveAgents = agentState.persistentSessionAgents;
@@ -19833,7 +19833,7 @@ async function pollCycleInner() {
19833
19833
  }
19834
19834
  }
19835
19835
  );
19836
- const { parkPendingInbound } = await import("../responsiveness-probe-32AWSVSL.js");
19836
+ const { parkPendingInbound } = await import("../responsiveness-probe-TPKISRGQ.js");
19837
19837
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19838
19838
  paneFatalStreak.delete(codeName);
19839
19839
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19864,7 +19864,7 @@ async function pollCycleInner() {
19864
19864
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19865
19865
  bindSourceEscalations
19866
19866
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19867
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-HS33PGZZ.js");
19867
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-HXK2Z6GH.js");
19868
19868
  const mountConfig = resolveTranscriptMountConfig();
19869
19869
  const liveAgents = agentState.persistentSessionAgents;
19870
19870
  for (const tracked of [
@@ -20029,7 +20029,7 @@ async function pollCycleInner() {
20029
20029
  }
20030
20030
  try {
20031
20031
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
20032
- const { probeSessionAuth } = await import("../session-auth-dead-2L2NLMMB.js");
20032
+ const { probeSessionAuth } = await import("../session-auth-dead-KMB35KRB.js");
20033
20033
  const observations = [];
20034
20034
  const pendingCacheCommits = [];
20035
20035
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24957,7 +24957,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24957
24957
  if (!refreshData) return;
24958
24958
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
24959
24959
  const hostId = await getHostId();
24960
- const parkForRestart = await import("../responsiveness-probe-32AWSVSL.js").then(
24960
+ const parkForRestart = await import("../responsiveness-probe-TPKISRGQ.js").then(
24961
24961
  (m) => m.parkPendingInbound,
24962
24962
  (err) => err
24963
24963
  );
@@ -25030,7 +25030,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
25030
25030
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
25031
25031
  void (async () => {
25032
25032
  try {
25033
- const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
25033
+ const { collectDiagnostics } = await import("../persistent-session-HXK2Z6GH.js");
25034
25034
  await api.post("/host/heartbeat", {
25035
25035
  host_id: hostId,
25036
25036
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25081,7 +25081,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
25081
25081
  }
25082
25082
  try {
25083
25083
  const hostId = await getHostId();
25084
- const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
25084
+ const { collectDiagnostics } = await import("../persistent-session-HXK2Z6GH.js");
25085
25085
  await api.post("/host/heartbeat", {
25086
25086
  host_id: hostId,
25087
25087
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25783,7 +25783,7 @@ async function processClaudePairSessions(agents) {
25783
25783
  snapshotPairConfig,
25784
25784
  // ENG-11659: result -> report body + the manager.log line that records it.
25785
25785
  planPairStartReport
25786
- } = await import("../claude-pair-runtime-WWF5BCK3.js");
25786
+ } = await import("../claude-pair-runtime-ZA24UQ7V.js");
25787
25787
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25788
25788
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25789
25789
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -46509,12 +46509,15 @@ var FLAG_REGISTRY = [
46509
46509
  // direct-chat MCP to render them: an older agt-cli shows a notice as
46510
46510
  // "download failed; ask the user to re-send", which sends users in circles
46511
46511
  // (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
46512
- // that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
46513
- // merges and "Publish CLI on adapter changes (main)" publishes the first
46514
- // agt-cli carrying the MCP change: replace it with that exact version in a
46515
- // one-line follow-up, and arm only when the modal shows 0 stale and 0
46516
- // unknown hosts. A placeholder over-reports stale hosts; it never hides one.
46517
- since: "0.29.0"
46512
+ // that renders notices. 0.28.1252 is the first published agt-cli carrying
46513
+ // #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
46514
+ // publish run on #7579's own merge commit 38465ce5f failed). Arm only when
46515
+ // the modal shows 0 stale and 0 unknown hosts. The reach count covers only
46516
+ // active hosts seen in the last 24h (routes/flags.ts), so also confirm no
46517
+ // active host older than 0.28.1252 is offline before arming the stage-wide
46518
+ // flip: one that reconnects later receives the armed flag on its first
46519
+ // heartbeat (CodeRabbit on #7588).
46520
+ since: "0.28.1252"
46518
46521
  },
46519
46522
  {
46520
46523
  key: "platform-held-key-central-probe",
@@ -47374,6 +47377,18 @@ var FLAG_REGISTRY = [
47374
47377
  // honours the filter is unproven, so an org must not switch it on for itself.
47375
47378
  platformAdminOnly: true
47376
47379
  },
47380
+ {
47381
+ key: "agent-email-inbox",
47382
+ description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
47383
+ flagType: "boolean",
47384
+ defaultValue: false,
47385
+ sensitive: true,
47386
+ platformAdminOnly: true
47387
+ // Deliberately NO envVar. The reader is the API, server-side, which can call the
47388
+ // flag evaluator directly - so there is no host-side bash hook needing a
47389
+ // materialised value, and declaring one would only create a literal for the
47390
+ // ENG-8303 sst-pin guard to catch.
47391
+ },
47377
47392
  {
47378
47393
  key: "premium-gateway-inference",
47379
47394
  description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
package/dist/mcp/index.js CHANGED
@@ -32191,12 +32191,15 @@ var FLAG_REGISTRY = [
32191
32191
  // direct-chat MCP to render them: an older agt-cli shows a notice as
32192
32192
  // "download failed; ask the user to re-send", which sends users in circles
32193
32193
  // (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
32194
- // that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
32195
- // merges and "Publish CLI on adapter changes (main)" publishes the first
32196
- // agt-cli carrying the MCP change: replace it with that exact version in a
32197
- // one-line follow-up, and arm only when the modal shows 0 stale and 0
32198
- // unknown hosts. A placeholder over-reports stale hosts; it never hides one.
32199
- since: "0.29.0"
32194
+ // that renders notices. 0.28.1252 is the first published agt-cli carrying
32195
+ // #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
32196
+ // publish run on #7579's own merge commit 38465ce5f failed). Arm only when
32197
+ // the modal shows 0 stale and 0 unknown hosts. The reach count covers only
32198
+ // active hosts seen in the last 24h (routes/flags.ts), so also confirm no
32199
+ // active host older than 0.28.1252 is offline before arming the stage-wide
32200
+ // flip: one that reconnects later receives the armed flag on its first
32201
+ // heartbeat (CodeRabbit on #7588).
32202
+ since: "0.28.1252"
32200
32203
  },
32201
32204
  {
32202
32205
  key: "platform-held-key-central-probe",
@@ -33056,6 +33059,18 @@ var FLAG_REGISTRY = [
33056
33059
  // honours the filter is unproven, so an org must not switch it on for itself.
33057
33060
  platformAdminOnly: true
33058
33061
  },
33062
+ {
33063
+ key: "agent-email-inbox",
33064
+ description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
33065
+ flagType: "boolean",
33066
+ defaultValue: false,
33067
+ sensitive: true,
33068
+ platformAdminOnly: true
33069
+ // Deliberately NO envVar. The reader is the API, server-side, which can call the
33070
+ // flag evaluator directly - so there is no host-side bash hook needing a
33071
+ // materialised value, and declaring one would only create a literal for the
33072
+ // ENG-8303 sst-pin guard to catch.
33073
+ },
33059
33074
  {
33060
33075
  key: "premium-gateway-inference",
33061
33076
  description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
@@ -49920,7 +49935,7 @@ function registerApprovalTools(server2, deps) {
49920
49935
  detail: external_exports.record(external_exports.unknown()).optional().describe(
49921
49936
  "Optional structured context for the approver (display + audit only; never executed). When the action is sending an email, include email: { to, from, subject } (to: an address or a list of them; from: the mailbox it goes out from) so the approval card shows From / To / Subject. Asking again with a different detail under the same idempotency_key is a different request."
49922
49937
  ),
49923
- ttl_seconds: external_exports.number().int().optional().describe("How long the request stays open before it times out (default 3600; clamped to [60, 86400])."),
49938
+ ttl_seconds: external_exports.number().int().optional().describe("How long the request stays open before it times out, in seconds (default 14400 = 4 hours; clamped to [60, 86400]). Omit it to get the default; do not pass a shorter value unless the action genuinely goes stale sooner."),
49924
49939
  kanban_item_id: external_exports.string().uuid().optional().describe(
49925
49940
  'The id of YOUR kanban card this approval is about. Pass it whenever the ask belongs to a card: the platform tries to park that card as waiting on this approval, so the approver can Approve/Deny from the card itself and the answer reaches this request. The result says whether the link happened (kanban_link); if it did not, the reason is given and the card is NOT waiting on the approval. Do NOT also park the card as a "human" wait with your own Approve/Deny choices; that creates a second ask the approval never hears, and the request expires.'
49926
49941
  )
@@ -45993,12 +45993,15 @@ var FLAG_REGISTRY = [
45993
45993
  // direct-chat MCP to render them: an older agt-cli shows a notice as
45994
45994
  // "download failed; ask the user to re-send", which sends users in circles
45995
45995
  // (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
45996
- // that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
45997
- // merges and "Publish CLI on adapter changes (main)" publishes the first
45998
- // agt-cli carrying the MCP change: replace it with that exact version in a
45999
- // one-line follow-up, and arm only when the modal shows 0 stale and 0
46000
- // unknown hosts. A placeholder over-reports stale hosts; it never hides one.
46001
- since: "0.29.0"
45996
+ // that renders notices. 0.28.1252 is the first published agt-cli carrying
45997
+ // #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
45998
+ // publish run on #7579's own merge commit 38465ce5f failed). Arm only when
45999
+ // the modal shows 0 stale and 0 unknown hosts. The reach count covers only
46000
+ // active hosts seen in the last 24h (routes/flags.ts), so also confirm no
46001
+ // active host older than 0.28.1252 is offline before arming the stage-wide
46002
+ // flip: one that reconnects later receives the armed flag on its first
46003
+ // heartbeat (CodeRabbit on #7588).
46004
+ since: "0.28.1252"
46002
46005
  },
46003
46006
  {
46004
46007
  key: "platform-held-key-central-probe",
@@ -46858,6 +46861,18 @@ var FLAG_REGISTRY = [
46858
46861
  // honours the filter is unproven, so an org must not switch it on for itself.
46859
46862
  platformAdminOnly: true
46860
46863
  },
46864
+ {
46865
+ key: "agent-email-inbox",
46866
+ description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
46867
+ flagType: "boolean",
46868
+ defaultValue: false,
46869
+ sensitive: true,
46870
+ platformAdminOnly: true
46871
+ // Deliberately NO envVar. The reader is the API, server-side, which can call the
46872
+ // flag evaluator directly - so there is no host-side bash hook needing a
46873
+ // materialised value, and declaring one would only create a literal for the
46874
+ // ENG-8303 sst-pin guard to catch.
46875
+ },
46861
46876
  {
46862
46877
  key: "premium-gateway-inference",
46863
46878
  description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
@@ -40848,12 +40848,15 @@ var FLAG_REGISTRY = [
40848
40848
  // direct-chat MCP to render them: an older agt-cli shows a notice as
40849
40849
  // "download failed; ask the user to re-send", which sends users in circles
40850
40850
  // (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
40851
- // that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
40852
- // merges and "Publish CLI on adapter changes (main)" publishes the first
40853
- // agt-cli carrying the MCP change: replace it with that exact version in a
40854
- // one-line follow-up, and arm only when the modal shows 0 stale and 0
40855
- // unknown hosts. A placeholder over-reports stale hosts; it never hides one.
40856
- since: "0.29.0"
40851
+ // that renders notices. 0.28.1252 is the first published agt-cli carrying
40852
+ // #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
40853
+ // publish run on #7579's own merge commit 38465ce5f failed). Arm only when
40854
+ // the modal shows 0 stale and 0 unknown hosts. The reach count covers only
40855
+ // active hosts seen in the last 24h (routes/flags.ts), so also confirm no
40856
+ // active host older than 0.28.1252 is offline before arming the stage-wide
40857
+ // flip: one that reconnects later receives the armed flag on its first
40858
+ // heartbeat (CodeRabbit on #7588).
40859
+ since: "0.28.1252"
40857
40860
  },
40858
40861
  {
40859
40862
  key: "platform-held-key-central-probe",
@@ -41713,6 +41716,18 @@ var FLAG_REGISTRY = [
41713
41716
  // honours the filter is unproven, so an org must not switch it on for itself.
41714
41717
  platformAdminOnly: true
41715
41718
  },
41719
+ {
41720
+ key: "agent-email-inbox",
41721
+ description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
41722
+ flagType: "boolean",
41723
+ defaultValue: false,
41724
+ sensitive: true,
41725
+ platformAdminOnly: true
41726
+ // Deliberately NO envVar. The reader is the API, server-side, which can call the
41727
+ // flag evaluator directly - so there is no host-side bash hook needing a
41728
+ // materialised value, and declaring one would only create a literal for the
41729
+ // ENG-8303 sst-pin guard to catch.
41730
+ },
41716
41731
  {
41717
41732
  key: "premium-gateway-inference",
41718
41733
  description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
@@ -41294,12 +41294,15 @@ var FLAG_REGISTRY = [
41294
41294
  // direct-chat MCP to render them: an older agt-cli shows a notice as
41295
41295
  // "download failed; ask the user to re-send", which sends users in circles
41296
41296
  // (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
41297
- // that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
41298
- // merges and "Publish CLI on adapter changes (main)" publishes the first
41299
- // agt-cli carrying the MCP change: replace it with that exact version in a
41300
- // one-line follow-up, and arm only when the modal shows 0 stale and 0
41301
- // unknown hosts. A placeholder over-reports stale hosts; it never hides one.
41302
- since: "0.29.0"
41297
+ // that renders notices. 0.28.1252 is the first published agt-cli carrying
41298
+ // #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
41299
+ // publish run on #7579's own merge commit 38465ce5f failed). Arm only when
41300
+ // the modal shows 0 stale and 0 unknown hosts. The reach count covers only
41301
+ // active hosts seen in the last 24h (routes/flags.ts), so also confirm no
41302
+ // active host older than 0.28.1252 is offline before arming the stage-wide
41303
+ // flip: one that reconnects later receives the armed flag on its first
41304
+ // heartbeat (CodeRabbit on #7588).
41305
+ since: "0.28.1252"
41303
41306
  },
41304
41307
  {
41305
41308
  key: "platform-held-key-central-probe",
@@ -42159,6 +42162,18 @@ var FLAG_REGISTRY = [
42159
42162
  // honours the filter is unproven, so an org must not switch it on for itself.
42160
42163
  platformAdminOnly: true
42161
42164
  },
42165
+ {
42166
+ key: "agent-email-inbox",
42167
+ description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
42168
+ flagType: "boolean",
42169
+ defaultValue: false,
42170
+ sensitive: true,
42171
+ platformAdminOnly: true
42172
+ // Deliberately NO envVar. The reader is the API, server-side, which can call the
42173
+ // flag evaluator directly - so there is no host-side bash hook needing a
42174
+ // materialised value, and declaring one would only create a literal for the
42175
+ // ENG-8303 sst-pin guard to catch.
42176
+ },
42162
42177
  {
42163
42178
  key: "premium-gateway-inference",
42164
42179
  description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-3HRBU4H6.js";
72
- import "./chunk-4VOQ6D7X.js";
71
+ } from "./chunk-GRTMENH5.js";
72
+ import "./chunk-CMLBFY5C.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-RUKGOBVA.js";
76
+ import "./chunk-UHT6L77A.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-HS33PGZZ.js.map
150
+ //# sourceMappingURL=persistent-session-HXK2Z6GH.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-3HRBU4H6.js";
4
- import "./chunk-4VOQ6D7X.js";
3
+ } from "./chunk-GRTMENH5.js";
4
+ import "./chunk-CMLBFY5C.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-RUKGOBVA.js";
8
+ import "./chunk-UHT6L77A.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-32AWSVSL.js.map
807
+ //# sourceMappingURL=responsiveness-probe-TPKISRGQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-4VOQ6D7X.js";
4
- import "./chunk-RUKGOBVA.js";
3
+ } from "./chunk-CMLBFY5C.js";
4
+ import "./chunk-UHT6L77A.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-2L2NLMMB.js.map
208
+ //# sourceMappingURL=session-auth-dead-KMB35KRB.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1252",
3
+ "version": "0.28.1253",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {