@integrity-labs/agt-cli 0.28.1255 → 0.28.1256

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 (33) hide show
  1. package/dist/{api-client-QWPG4CTP.js → api-client-U52DMNUZ.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-FHBQ567A.js → chunk-3DOSUOHP.js} +2 -2
  4. package/dist/{chunk-JNG5SRQC.js → chunk-47XHFW55.js} +14 -2
  5. package/dist/chunk-47XHFW55.js.map +1 -0
  6. package/dist/{chunk-ZGG6D257.js → chunk-4RTRYTAS.js} +2 -2
  7. package/dist/{chunk-M4IKX2W2.js → chunk-5MAK4D4P.js} +3 -3
  8. package/dist/{chunk-JZFSKDEJ.js → chunk-KYA2WIES.js} +5 -5
  9. package/dist/{chunk-YRKZIOZ4.js → chunk-SR36GVLZ.js} +3 -3
  10. package/dist/{claude-code-updater-DE7N7KAQ.js → claude-code-updater-VKTFAUV3.js} +3 -3
  11. package/dist/{claude-pair-runtime-NNQOJHPB.js → claude-pair-runtime-WMP5O3JG.js} +3 -3
  12. package/dist/lib/manager-worker.js +21 -21
  13. package/dist/mcp/direct-chat-channel.js +13 -1
  14. package/dist/mcp/index.js +13 -1
  15. package/dist/mcp/origami.js +13 -1
  16. package/dist/mcp/slack-channel.js +13 -1
  17. package/dist/mcp/telegram-channel.js +13 -1
  18. package/dist/{persistent-session-JR6TQJXM.js → persistent-session-UXXRNZ74.js} +4 -4
  19. package/dist/{responsiveness-probe-MOGAXCXI.js → responsiveness-probe-X4QJKKRR.js} +4 -4
  20. package/dist/{session-auth-dead-KZ7BTXYR.js → session-auth-dead-T4FSSZWG.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-JNG5SRQC.js.map +0 -1
  23. /package/dist/{api-client-QWPG4CTP.js.map → api-client-U52DMNUZ.js.map} +0 -0
  24. /package/dist/{chunk-FHBQ567A.js.map → chunk-3DOSUOHP.js.map} +0 -0
  25. /package/dist/{chunk-ZGG6D257.js.map → chunk-4RTRYTAS.js.map} +0 -0
  26. /package/dist/{chunk-M4IKX2W2.js.map → chunk-5MAK4D4P.js.map} +0 -0
  27. /package/dist/{chunk-JZFSKDEJ.js.map → chunk-KYA2WIES.js.map} +0 -0
  28. /package/dist/{chunk-YRKZIOZ4.js.map → chunk-SR36GVLZ.js.map} +0 -0
  29. /package/dist/{claude-code-updater-DE7N7KAQ.js.map → claude-code-updater-VKTFAUV3.js.map} +0 -0
  30. /package/dist/{claude-pair-runtime-NNQOJHPB.js.map → claude-pair-runtime-WMP5O3JG.js.map} +0 -0
  31. /package/dist/{persistent-session-JR6TQJXM.js.map → persistent-session-UXXRNZ74.js.map} +0 -0
  32. /package/dist/{responsiveness-probe-MOGAXCXI.js.map → responsiveness-probe-X4QJKKRR.js.map} +0 -0
  33. /package/dist/{session-auth-dead-KZ7BTXYR.js.map → session-auth-dead-T4FSSZWG.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-JNG5SRQC.js";
3
+ } from "./chunk-47XHFW55.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -244,4 +244,4 @@ export {
244
244
  peekPreviousSession,
245
245
  readDailySessionPin
246
246
  };
247
- //# sourceMappingURL=chunk-ZGG6D257.js.map
247
+ //# sourceMappingURL=chunk-4RTRYTAS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-JNG5SRQC.js";
3
+ } from "./chunk-47XHFW55.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1255" : "dev";
106
+ var agtCliVersion = true ? "0.28.1256" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-M4IKX2W2.js.map
471
+ //# sourceMappingURL=chunk-5MAK4D4P.js.map
@@ -2,7 +2,7 @@ import {
2
2
  exchangeApiKey,
3
3
  getApiKey,
4
4
  getHost
5
- } from "./chunk-M4IKX2W2.js";
5
+ } from "./chunk-5MAK4D4P.js";
6
6
  import {
7
7
  LATE_BOUND_VARS,
8
8
  PLATFORM_DENY_PERMISSIONS,
@@ -25,11 +25,11 @@ import {
25
25
  shellQuote,
26
26
  withheldRemoteMcpMessage,
27
27
  withheldRemoteMcpReasonFor
28
- } from "./chunk-YRKZIOZ4.js";
28
+ } from "./chunk-SR36GVLZ.js";
29
29
  import {
30
30
  readDailySessionPin,
31
31
  sessionTranscriptDir
32
- } from "./chunk-ZGG6D257.js";
32
+ } from "./chunk-4RTRYTAS.js";
33
33
  import {
34
34
  classifyUnanswerablePane,
35
35
  isConsumerTermsDialogVisible,
@@ -101,7 +101,7 @@ import {
101
101
  scanConfigForLiteralSecrets,
102
102
  worseConnectivityOutcome,
103
103
  wrapScheduledTaskPrompt
104
- } from "./chunk-JNG5SRQC.js";
104
+ } from "./chunk-47XHFW55.js";
105
105
  import {
106
106
  claudeJsonPathFor,
107
107
  effectiveClaudeJsonPath,
@@ -13534,4 +13534,4 @@ export {
13534
13534
  managerInstallSystemUnitCommand,
13535
13535
  managerUninstallSystemUnitCommand
13536
13536
  };
13537
- //# sourceMappingURL=chunk-JZFSKDEJ.js.map
13537
+ //# sourceMappingURL=chunk-KYA2WIES.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-ZGG6D257.js";
7
+ } from "./chunk-4RTRYTAS.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-JNG5SRQC.js";
54
+ } from "./chunk-47XHFW55.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6277,4 +6277,4 @@ export {
6277
6277
  stopAllSessionsAndWait,
6278
6278
  getProjectDir
6279
6279
  };
6280
- //# sourceMappingURL=chunk-YRKZIOZ4.js.map
6280
+ //# sourceMappingURL=chunk-SR36GVLZ.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-FHBQ567A.js";
16
+ } from "./chunk-3DOSUOHP.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-JNG5SRQC.js";
18
+ import "./chunk-47XHFW55.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-DE7N7KAQ.js.map
37
+ //# sourceMappingURL=claude-code-updater-VKTFAUV3.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-JNG5SRQC.js";
11
+ } from "./chunk-47XHFW55.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-JR6TQJXM.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-UXXRNZ74.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-NNQOJHPB.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-WMP5O3JG.js.map
@@ -69,7 +69,7 @@ import {
69
69
  tripClass,
70
70
  writeEtcEnvironment,
71
71
  writeProfileDScript
72
- } from "../chunk-JZFSKDEJ.js";
72
+ } from "../chunk-KYA2WIES.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-M4IKX2W2.js";
90
+ } from "../chunk-5MAK4D4P.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-YRKZIOZ4.js";
174
+ } from "../chunk-SR36GVLZ.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-ZGG6D257.js";
185
+ } from "../chunk-4RTRYTAS.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-FHBQ567A.js";
209
+ } from "../chunk-3DOSUOHP.js";
210
210
  import {
211
211
  parsePsRows,
212
212
  reapOrphanChannelMcps
@@ -334,7 +334,7 @@ import {
334
334
  stabiliseResetInstant,
335
335
  sumTranscriptUsageInWindow,
336
336
  summarizeTranscriptActivity
337
- } from "../chunk-JNG5SRQC.js";
337
+ } from "../chunk-47XHFW55.js";
338
338
  import {
339
339
  CLAUDE_CONFIG_DIR_ENV,
340
340
  claudeConfigDirFor,
@@ -14157,7 +14157,7 @@ function createFileMigrationReportIO(codeName, log2) {
14157
14157
  };
14158
14158
  }
14159
14159
  var managerHostPost = async (path, body) => {
14160
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-QWPG4CTP.js");
14160
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-U52DMNUZ.js");
14161
14161
  try {
14162
14162
  const json = await api2.post(path, body);
14163
14163
  return { status: 200, json };
@@ -16196,7 +16196,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
16196
16196
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
16197
16197
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
16198
16198
  async function channelInboundActivityAgeSecondsFor(codeName) {
16199
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-MOGAXCXI.js");
16199
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-X4QJKKRR.js");
16200
16200
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
16201
16201
  if (newest === null) return null;
16202
16202
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -17012,7 +17012,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
17012
17012
  var lastVersionCheckAt = 0;
17013
17013
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
17014
17014
  var lastResponsivenessProbeAt = 0;
17015
- var agtCliVersion = true ? "0.28.1255" : "dev";
17015
+ var agtCliVersion = true ? "0.28.1256" : "dev";
17016
17016
  function resolveBrewPath(execFileSync4) {
17017
17017
  try {
17018
17018
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -19011,7 +19011,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
19011
19011
  if (codeNames.length === 0) return;
19012
19012
  void (async () => {
19013
19013
  try {
19014
- const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
19014
+ const { collectDiagnostics } = await import("../persistent-session-UXXRNZ74.js");
19015
19015
  await api.post("/host/heartbeat", {
19016
19016
  host_id: hostId,
19017
19017
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -19154,7 +19154,7 @@ async function pollCycleInner() {
19154
19154
  }
19155
19155
  try {
19156
19156
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
19157
- const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
19157
+ const { collectDiagnostics } = await import("../persistent-session-UXXRNZ74.js");
19158
19158
  const diagCodeNames = [...agentState.persistentSessionAgents];
19159
19159
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
19160
19160
  let tailscaleHostname;
@@ -19419,7 +19419,7 @@ async function pollCycleInner() {
19419
19419
  }
19420
19420
  try {
19421
19421
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19422
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-DE7N7KAQ.js");
19422
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-VKTFAUV3.js");
19423
19423
  const securityFloor = currentSecurityFloor();
19424
19424
  claudeUpdaterInFlight = true;
19425
19425
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19454,7 +19454,7 @@ async function pollCycleInner() {
19454
19454
  collectPanelessActivityProbes,
19455
19455
  getResponsivenessIntervalMs,
19456
19456
  occupancyQualificationClassifications
19457
- } = await import("../responsiveness-probe-MOGAXCXI.js");
19457
+ } = await import("../responsiveness-probe-X4QJKKRR.js");
19458
19458
  const probeIntervalMs = getResponsivenessIntervalMs();
19459
19459
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19460
19460
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19571,7 +19571,7 @@ async function pollCycleInner() {
19571
19571
  collectResponsivenessProbes,
19572
19572
  livePendingInboundOldestAgeSeconds,
19573
19573
  parkPendingInbound
19574
- } = await import("../responsiveness-probe-MOGAXCXI.js");
19574
+ } = await import("../responsiveness-probe-X4QJKKRR.js");
19575
19575
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19576
19576
  const wedgeNow = /* @__PURE__ */ new Date();
19577
19577
  const liveAgents = agentState.persistentSessionAgents;
@@ -19857,7 +19857,7 @@ async function pollCycleInner() {
19857
19857
  }
19858
19858
  }
19859
19859
  );
19860
- const { parkPendingInbound } = await import("../responsiveness-probe-MOGAXCXI.js");
19860
+ const { parkPendingInbound } = await import("../responsiveness-probe-X4QJKKRR.js");
19861
19861
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19862
19862
  paneFatalStreak.delete(codeName);
19863
19863
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19888,7 +19888,7 @@ async function pollCycleInner() {
19888
19888
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19889
19889
  bindSourceEscalations
19890
19890
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19891
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JR6TQJXM.js");
19891
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-UXXRNZ74.js");
19892
19892
  const mountConfig = resolveTranscriptMountConfig();
19893
19893
  const liveAgents = agentState.persistentSessionAgents;
19894
19894
  for (const tracked of [
@@ -20053,7 +20053,7 @@ async function pollCycleInner() {
20053
20053
  }
20054
20054
  try {
20055
20055
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
20056
- const { probeSessionAuth } = await import("../session-auth-dead-KZ7BTXYR.js");
20056
+ const { probeSessionAuth } = await import("../session-auth-dead-T4FSSZWG.js");
20057
20057
  const observations = [];
20058
20058
  const pendingCacheCommits = [];
20059
20059
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24981,7 +24981,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24981
24981
  if (!refreshData) return;
24982
24982
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
24983
24983
  const hostId = await getHostId();
24984
- const parkForRestart = await import("../responsiveness-probe-MOGAXCXI.js").then(
24984
+ const parkForRestart = await import("../responsiveness-probe-X4QJKKRR.js").then(
24985
24985
  (m) => m.parkPendingInbound,
24986
24986
  (err) => err
24987
24987
  );
@@ -25054,7 +25054,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
25054
25054
  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}`));
25055
25055
  void (async () => {
25056
25056
  try {
25057
- const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
25057
+ const { collectDiagnostics } = await import("../persistent-session-UXXRNZ74.js");
25058
25058
  await api.post("/host/heartbeat", {
25059
25059
  host_id: hostId,
25060
25060
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25105,7 +25105,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
25105
25105
  }
25106
25106
  try {
25107
25107
  const hostId = await getHostId();
25108
- const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
25108
+ const { collectDiagnostics } = await import("../persistent-session-UXXRNZ74.js");
25109
25109
  await api.post("/host/heartbeat", {
25110
25110
  host_id: hostId,
25111
25111
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25807,7 +25807,7 @@ async function processClaudePairSessions(agents) {
25807
25807
  snapshotPairConfig,
25808
25808
  // ENG-11659: result -> report body + the manager.log line that records it.
25809
25809
  planPairStartReport
25810
- } = await import("../claude-pair-runtime-NNQOJHPB.js");
25810
+ } = await import("../claude-pair-runtime-WMP5O3JG.js");
25811
25811
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25812
25812
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25813
25813
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -38064,6 +38064,7 @@ var ROLE_PERMISSIONS = {
38064
38064
  "project.create",
38065
38065
  "project.edit",
38066
38066
  "project.move",
38067
+ "project.share",
38067
38068
  "workflow.author",
38068
38069
  "workflow.promote",
38069
38070
  "guardrail.author"
@@ -38093,6 +38094,7 @@ var ROLE_PERMISSIONS = {
38093
38094
  "project.create",
38094
38095
  "project.edit",
38095
38096
  "project.move",
38097
+ "project.share",
38096
38098
  "workflow.author",
38097
38099
  "workflow.promote",
38098
38100
  "guardrail.author"
@@ -43958,6 +43960,10 @@ var HOUR_MS = 60 * MINUTE_MS;
43958
43960
  var DAY_MS = 24 * HOUR_MS;
43959
43961
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
43960
43962
 
43963
+ // ../core/dist/alerts/owner-notice.js
43964
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
43965
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
43966
+
43961
43967
  // ../core/dist/conversations/metrics.js
43962
43968
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
43963
43969
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -45501,6 +45507,12 @@ var FLAG_REGISTRY = [
45501
45507
  flagType: "boolean",
45502
45508
  defaultValue: false
45503
45509
  },
45510
+ {
45511
+ key: "owner-dark-notice",
45512
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
45513
+ flagType: "boolean",
45514
+ defaultValue: false
45515
+ },
45504
45516
  {
45505
45517
  key: "human-task-assignment-notify",
45506
45518
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -47422,7 +47434,7 @@ var FLAG_REGISTRY = [
47422
47434
  },
47423
47435
  {
47424
47436
  key: "premium-gateway-inference",
47425
- 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.",
47437
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. 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 credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
47426
47438
  flagType: "boolean",
47427
47439
  defaultValue: false,
47428
47440
  sensitive: true,
package/dist/mcp/index.js CHANGED
@@ -24109,6 +24109,7 @@ var ROLE_PERMISSIONS = {
24109
24109
  "project.create",
24110
24110
  "project.edit",
24111
24111
  "project.move",
24112
+ "project.share",
24112
24113
  "workflow.author",
24113
24114
  "workflow.promote",
24114
24115
  "guardrail.author"
@@ -24138,6 +24139,7 @@ var ROLE_PERMISSIONS = {
24138
24139
  "project.create",
24139
24140
  "project.edit",
24140
24141
  "project.move",
24142
+ "project.share",
24141
24143
  "workflow.author",
24142
24144
  "workflow.promote",
24143
24145
  "guardrail.author"
@@ -29640,6 +29642,10 @@ var HOUR_MS = 60 * MINUTE_MS;
29640
29642
  var DAY_MS = 24 * HOUR_MS;
29641
29643
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
29642
29644
 
29645
+ // ../core/dist/alerts/owner-notice.js
29646
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
29647
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
29648
+
29643
29649
  // ../core/dist/conversations/metrics.js
29644
29650
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
29645
29651
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -31183,6 +31189,12 @@ var FLAG_REGISTRY = [
31183
31189
  flagType: "boolean",
31184
31190
  defaultValue: false
31185
31191
  },
31192
+ {
31193
+ key: "owner-dark-notice",
31194
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
31195
+ flagType: "boolean",
31196
+ defaultValue: false
31197
+ },
31186
31198
  {
31187
31199
  key: "human-task-assignment-notify",
31188
31200
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -33104,7 +33116,7 @@ var FLAG_REGISTRY = [
33104
33116
  },
33105
33117
  {
33106
33118
  key: "premium-gateway-inference",
33107
- 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.",
33119
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. 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 credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
33108
33120
  flagType: "boolean",
33109
33121
  defaultValue: false,
33110
33122
  sensitive: true,
@@ -38236,6 +38236,7 @@ var ROLE_PERMISSIONS = {
38236
38236
  "project.create",
38237
38237
  "project.edit",
38238
38238
  "project.move",
38239
+ "project.share",
38239
38240
  "workflow.author",
38240
38241
  "workflow.promote",
38241
38242
  "guardrail.author"
@@ -38265,6 +38266,7 @@ var ROLE_PERMISSIONS = {
38265
38266
  "project.create",
38266
38267
  "project.edit",
38267
38268
  "project.move",
38269
+ "project.share",
38268
38270
  "workflow.author",
38269
38271
  "workflow.promote",
38270
38272
  "guardrail.author"
@@ -43442,6 +43444,10 @@ var HOUR_MS = 60 * MINUTE_MS;
43442
43444
  var DAY_MS = 24 * HOUR_MS;
43443
43445
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
43444
43446
 
43447
+ // ../core/dist/alerts/owner-notice.js
43448
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
43449
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
43450
+
43445
43451
  // ../core/dist/conversations/metrics.js
43446
43452
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
43447
43453
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -44985,6 +44991,12 @@ var FLAG_REGISTRY = [
44985
44991
  flagType: "boolean",
44986
44992
  defaultValue: false
44987
44993
  },
44994
+ {
44995
+ key: "owner-dark-notice",
44996
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
44997
+ flagType: "boolean",
44998
+ defaultValue: false
44999
+ },
44988
45000
  {
44989
45001
  key: "human-task-assignment-notify",
44990
45002
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -46906,7 +46918,7 @@ var FLAG_REGISTRY = [
46906
46918
  },
46907
46919
  {
46908
46920
  key: "premium-gateway-inference",
46909
- 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.",
46921
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. 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 credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
46910
46922
  flagType: "boolean",
46911
46923
  defaultValue: false,
46912
46924
  sensitive: true,
@@ -32669,6 +32669,7 @@ var ROLE_PERMISSIONS = {
32669
32669
  "project.create",
32670
32670
  "project.edit",
32671
32671
  "project.move",
32672
+ "project.share",
32672
32673
  "workflow.author",
32673
32674
  "workflow.promote",
32674
32675
  "guardrail.author"
@@ -32698,6 +32699,7 @@ var ROLE_PERMISSIONS = {
32698
32699
  "project.create",
32699
32700
  "project.edit",
32700
32701
  "project.move",
32702
+ "project.share",
32701
32703
  "workflow.author",
32702
32704
  "workflow.promote",
32703
32705
  "guardrail.author"
@@ -38297,6 +38299,10 @@ var HOUR_MS = 60 * MINUTE_MS;
38297
38299
  var DAY_MS = 24 * HOUR_MS;
38298
38300
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
38299
38301
 
38302
+ // ../core/dist/alerts/owner-notice.js
38303
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
38304
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
38305
+
38300
38306
  // ../core/dist/conversations/metrics.js
38301
38307
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
38302
38308
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -39840,6 +39846,12 @@ var FLAG_REGISTRY = [
39840
39846
  flagType: "boolean",
39841
39847
  defaultValue: false
39842
39848
  },
39849
+ {
39850
+ key: "owner-dark-notice",
39851
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
39852
+ flagType: "boolean",
39853
+ defaultValue: false
39854
+ },
39843
39855
  {
39844
39856
  key: "human-task-assignment-notify",
39845
39857
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -41761,7 +41773,7 @@ var FLAG_REGISTRY = [
41761
41773
  },
41762
41774
  {
41763
41775
  key: "premium-gateway-inference",
41764
- 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.",
41776
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. 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 credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
41765
41777
  flagType: "boolean",
41766
41778
  defaultValue: false,
41767
41779
  sensitive: true,
@@ -33121,6 +33121,7 @@ var ROLE_PERMISSIONS = {
33121
33121
  "project.create",
33122
33122
  "project.edit",
33123
33123
  "project.move",
33124
+ "project.share",
33124
33125
  "workflow.author",
33125
33126
  "workflow.promote",
33126
33127
  "guardrail.author"
@@ -33150,6 +33151,7 @@ var ROLE_PERMISSIONS = {
33150
33151
  "project.create",
33151
33152
  "project.edit",
33152
33153
  "project.move",
33154
+ "project.share",
33153
33155
  "workflow.author",
33154
33156
  "workflow.promote",
33155
33157
  "guardrail.author"
@@ -38743,6 +38745,10 @@ var HOUR_MS = 60 * MINUTE_MS;
38743
38745
  var DAY_MS = 24 * HOUR_MS;
38744
38746
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
38745
38747
 
38748
+ // ../core/dist/alerts/owner-notice.js
38749
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
38750
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
38751
+
38746
38752
  // ../core/dist/conversations/metrics.js
38747
38753
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
38748
38754
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -40286,6 +40292,12 @@ var FLAG_REGISTRY = [
40286
40292
  flagType: "boolean",
40287
40293
  defaultValue: false
40288
40294
  },
40295
+ {
40296
+ key: "owner-dark-notice",
40297
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
40298
+ flagType: "boolean",
40299
+ defaultValue: false
40300
+ },
40289
40301
  {
40290
40302
  key: "human-task-assignment-notify",
40291
40303
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -42207,7 +42219,7 @@ var FLAG_REGISTRY = [
42207
42219
  },
42208
42220
  {
42209
42221
  key: "premium-gateway-inference",
42210
- 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.",
42222
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. 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 credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
42211
42223
  flagType: "boolean",
42212
42224
  defaultValue: false,
42213
42225
  sensitive: true,
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-YRKZIOZ4.js";
72
- import "./chunk-ZGG6D257.js";
71
+ } from "./chunk-SR36GVLZ.js";
72
+ import "./chunk-4RTRYTAS.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-JNG5SRQC.js";
76
+ import "./chunk-47XHFW55.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-JR6TQJXM.js.map
150
+ //# sourceMappingURL=persistent-session-UXXRNZ74.js.map