@integrity-labs/agt-cli 0.28.1208 → 0.28.1210

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 (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-Y26MLRXC.js → chunk-6TXC2YC3.js} +2 -2
  3. package/dist/{chunk-OU5XSJJX.js → chunk-EOMFINJP.js} +5 -5
  4. package/dist/{chunk-R4EJS4TN.js → chunk-JM4J6GYJ.js} +18 -1
  5. package/dist/chunk-JM4J6GYJ.js.map +1 -0
  6. package/dist/{chunk-D565LL6O.js → chunk-PTWO2LSN.js} +2 -2
  7. package/dist/{chunk-POD2ZTMG.js → chunk-REX6HMS6.js} +3 -3
  8. package/dist/{claude-code-updater-P6ZC52QN.js → claude-code-updater-RC3TT5TZ.js} +3 -3
  9. package/dist/{claude-pair-runtime-4O5GIY7X.js → claude-pair-runtime-OVWGDMWK.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/direct-chat-channel.js +52 -35
  12. package/dist/mcp/index.js +39 -22
  13. package/dist/mcp/origami.js +39 -22
  14. package/dist/mcp/slack-channel.js +202 -22
  15. package/dist/mcp/telegram-channel.js +39 -22
  16. package/dist/{persistent-session-IXSNL2L3.js → persistent-session-UJBNO5IF.js} +4 -4
  17. package/dist/{responsiveness-probe-6WBSEIIK.js → responsiveness-probe-6BELVQ42.js} +4 -4
  18. package/dist/{session-auth-dead-M6XDFGDM.js → session-auth-dead-RLOWHZ3T.js} +3 -3
  19. package/package.json +1 -1
  20. package/dist/chunk-R4EJS4TN.js.map +0 -1
  21. /package/dist/{chunk-Y26MLRXC.js.map → chunk-6TXC2YC3.js.map} +0 -0
  22. /package/dist/{chunk-OU5XSJJX.js.map → chunk-EOMFINJP.js.map} +0 -0
  23. /package/dist/{chunk-D565LL6O.js.map → chunk-PTWO2LSN.js.map} +0 -0
  24. /package/dist/{chunk-POD2ZTMG.js.map → chunk-REX6HMS6.js.map} +0 -0
  25. /package/dist/{claude-code-updater-P6ZC52QN.js.map → claude-code-updater-RC3TT5TZ.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-4O5GIY7X.js.map → claude-pair-runtime-OVWGDMWK.js.map} +0 -0
  27. /package/dist/{persistent-session-IXSNL2L3.js.map → persistent-session-UJBNO5IF.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-6WBSEIIK.js.map → responsiveness-probe-6BELVQ42.js.map} +0 -0
  29. /package/dist/{session-auth-dead-M6XDFGDM.js.map → session-auth-dead-RLOWHZ3T.js.map} +0 -0
@@ -30836,6 +30836,26 @@ function resolveGhostReplyMode(opts) {
30836
30836
  if (cached2 !== void 0) return cached2;
30837
30837
  return "off";
30838
30838
  }
30839
+ var GHOST_REPLY_NARRATION_GUARD_FLAG_KEY = "ghost-reply-narration-guard";
30840
+ function resolveGhostReplyNarrationGuardMode(opts) {
30841
+ const env2 = opts?.env ?? process.env;
30842
+ const parse3 = (raw) => {
30843
+ const v = typeof raw === "string" ? raw.trim().toLowerCase() : "";
30844
+ return v === "off" || v === "shadow" || v === "enforce" ? v : void 0;
30845
+ };
30846
+ const override = parse3(env2["AGT_GHOST_REPLY_NARRATION_GUARD_MODE"]);
30847
+ if (override) return override;
30848
+ try {
30849
+ const path = opts?.cachePath ?? defaultFlagsCachePath(env2);
30850
+ if (existsSync(path)) {
30851
+ const parsed = JSON.parse(readFileSync(path, "utf8"));
30852
+ const cached2 = parse3(parsed?.flags?.[GHOST_REPLY_NARRATION_GUARD_FLAG_KEY]);
30853
+ if (cached2) return cached2;
30854
+ }
30855
+ } catch {
30856
+ }
30857
+ return "shadow";
30858
+ }
30839
30859
  var MAINTENANCE_FLAG_KEY = "platform-maintenance-mode";
30840
30860
  function parseMaintenanceMode(raw) {
30841
30861
  if (raw === void 0) return void 0;
@@ -33796,6 +33816,28 @@ function linkOpenerScript(frameId) {
33796
33816
  }
33797
33817
  var WRAPPER_LINK_OPENER = linkOpenerScript("al-doc");
33798
33818
 
33819
+ // ../core/dist/integrations/augmented-live/asset.js
33820
+ var MB = 1024 * 1024;
33821
+ var ASSET_TYPES = {
33822
+ "image/png": { ext: "png", maxBytes: 5 * MB, enabled: true },
33823
+ "image/jpeg": { ext: "jpg", maxBytes: 5 * MB, enabled: true },
33824
+ "image/webp": { ext: "webp", maxBytes: 5 * MB, enabled: true },
33825
+ "image/gif": { ext: "gif", maxBytes: 10 * MB, enabled: true },
33826
+ // Video (guided-tour narration clips). Inert ISO-BMFF / EBML containers — like
33827
+ // the rasters and mp3 above, not active content — so serving them as top-level
33828
+ // same-origin asset URLs is safe (the SVG/HTML-polyglot risk in the module
33829
+ // header doesn't apply; publish-time magic-byte sniffing enforces it). Uploads
33830
+ // are presigned-PUT straight to S3, and S3+CloudFront serve range requests so
33831
+ // <video> seeking works.
33832
+ "video/mp4": { ext: "mp4", maxBytes: 100 * MB, enabled: true },
33833
+ "video/webm": { ext: "webm", maxBytes: 100 * MB, enabled: true },
33834
+ // ENG-7048: enabled for server-generated ElevenLabs voiceover (text-to-speech).
33835
+ // MP3 is an inert binary container (like the rasters above), so serving it as a
33836
+ // top-level same-origin asset URL is safe — the SVG/HTML-polyglot risk in the
33837
+ // module header does not apply. Embedded as <audio src=...> in the page HTML.
33838
+ "audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
33839
+ };
33840
+
33799
33841
  // ../core/dist/integrations/augmented-live/publisher.js
33800
33842
  var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
33801
33843
  var presenterChromeCss = `
@@ -33831,28 +33873,6 @@ var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN
33831
33873
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
33832
33874
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
33833
33875
 
33834
- // ../core/dist/integrations/augmented-live/asset.js
33835
- var MB = 1024 * 1024;
33836
- var ASSET_TYPES = {
33837
- "image/png": { ext: "png", maxBytes: 5 * MB, enabled: true },
33838
- "image/jpeg": { ext: "jpg", maxBytes: 5 * MB, enabled: true },
33839
- "image/webp": { ext: "webp", maxBytes: 5 * MB, enabled: true },
33840
- "image/gif": { ext: "gif", maxBytes: 10 * MB, enabled: true },
33841
- // Video (guided-tour narration clips). Inert ISO-BMFF / EBML containers — like
33842
- // the rasters and mp3 above, not active content — so serving them as top-level
33843
- // same-origin asset URLs is safe (the SVG/HTML-polyglot risk in the module
33844
- // header doesn't apply; publish-time magic-byte sniffing enforces it). Uploads
33845
- // are presigned-PUT straight to S3, and S3+CloudFront serve range requests so
33846
- // <video> seeking works.
33847
- "video/mp4": { ext: "mp4", maxBytes: 100 * MB, enabled: true },
33848
- "video/webm": { ext: "webm", maxBytes: 100 * MB, enabled: true },
33849
- // ENG-7048: enabled for server-generated ElevenLabs voiceover (text-to-speech).
33850
- // MP3 is an inert binary container (like the rasters above), so serving it as a
33851
- // top-level same-origin asset URL is safe — the SVG/HTML-polyglot risk in the
33852
- // module header does not apply. Embedded as <audio src=...> in the page HTML.
33853
- "audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
33854
- };
33855
-
33856
33876
  // ../core/dist/integrations/augmented-live/codec.js
33857
33877
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
33858
33878
  var textEncoder = new TextEncoder();
@@ -39156,6 +39176,23 @@ var FLAG_REGISTRY = [
39156
39176
  // change (ADR-0022 sensitive-flag confirm).
39157
39177
  sensitive: true
39158
39178
  },
39179
+ {
39180
+ key: "ghost-reply-narration-guard",
39181
+ description: "Model-free guard on the SLACK ghost-reply RECOVERY path (CS-1821, CS-1429, ENG-7780); Telegram and Teams recovery do not run it. Recovered end-of-turn text with no second person, question, link or mention, that uses stand-down wording or names the person being answered in the third person, is not published. enforce = keep the marker so the inbound is re-delivered and the agent can answer properly. When re-deliveries run out, stand-down wording closes unposted and a name-only match publishes; with no reply owed, either closes. shadow = log only. off = never runs. A false match usually costs a re-ask; a real reply using stand-down wording every time is lost.",
39182
+ flagType: "enum",
39183
+ allowedValues: ["off", "shadow", "enforce"],
39184
+ // Ships in SHADOW: a free local log line, like every enum flag here, enforce is a
39185
+ // deliberate flip. Read the match log before flipping: a false match usually costs
39186
+ // a re-ask, but one repeated on every re-delivery loses the reply.
39187
+ defaultValue: "shadow",
39188
+ envVar: "AGT_GHOST_REPLY_NARRATION_GUARD_MODE",
39189
+ sensitive: true,
39190
+ // DELIBERATE UNREACHABLE PLACEHOLDER, not a real threshold. The reader is host-side
39191
+ // (the channel MCP), so a host on an older agt-cli ignores this flag. Replace it with
39192
+ // the first published agt-cli carrying the reader before flipping to enforce. Same
39193
+ // convention as `github-broker-credentials`.
39194
+ since: "0.29.0"
39195
+ },
39159
39196
  {
39160
39197
  key: "slack-scheduled-channel-guard",
39161
39198
  description: 'Guard on slack.reply that refuses to let an active scheduled-task destination silently move a reply to a DIFFERENT channel than the agent named (ENG-8137). CS-1505 gave an explicit inbound_id priority over the task destination but left the no-inbound_id case treating "no inbound reference" as "no destination specified" - and `channel` is a REQUIRED argument, so every call names one. The symptom: a question asked in one channel answered in another, and a reply meant as a DM landing in a public channel. Fires only when the marker carries an EXPLICIT target, the named channel differs from it, and neither an inbound_id, an enforce binding, nor an ENG-7542 channel correction is available to arbitrate. off = never runs (today behaviour: silent retarget). shadow = count + log the would-block but STILL route as today, so the false-positive rate is measurable before anyone refuses a send. enforce = block the reply and tell the agent to retry. Read live from the heartbeat flags-cache (or the env override). NOTE: enforce is currently CLAMPED to shadow host-side and setting it here will not take effect - it stays blocked until ENG-8142 teaches the Stop hook to tell a refused reply from a delivered one, because until then a blocked send fails silently (no recovery, no re-prompt, nothing in the channel). Lifting the clamp is a code change, not a flag flip.',
@@ -43513,6 +43550,73 @@ function shouldDeliverWithoutClassifying(text) {
43513
43550
  if (/<[@#][A-Z0-9]/.test(t)) return true;
43514
43551
  return false;
43515
43552
  }
43553
+ var STAND_DOWN_NARRATION = [
43554
+ /\bstanding by\b/i,
43555
+ /\bstaying (silent|quiet|out)\b/i,
43556
+ /\bstand(ing)? down\b/i,
43557
+ /\bnot (addressed to|for|directed at) me\b/i,
43558
+ /\bno (reply|response) (is )?(needed|required|owed)\b/i,
43559
+ /\bnot replying\b/i,
43560
+ /\breacted,? nothing else\b/i,
43561
+ /\bcard (is )?parked\b/i,
43562
+ /\bparked (in|on) (todo|waiting|backlog)\b/i
43563
+ ];
43564
+ function withoutAddress(text, name) {
43565
+ const escaped = name.replace(/[.*+?^\${}()|[\]\\]/g, "\\$&");
43566
+ return text.replace(
43567
+ new RegExp(`^\\s*(?:(?:hi|hey|hello|thanks|thank you|ok|okay|sure|yes|no),?\\s+)?${escaped}\\s*[,:!.\\-]`, "i"),
43568
+ ""
43569
+ ).replace(new RegExp(`(?:thanks|thank you|cheers),?\\s+${escaped}\\s*[.!]*\\s*$`, "i"), "").replace(new RegExp(`,\\s*${escaped}\\s*[.!]*\\s*$`, "i"), "");
43570
+ }
43571
+ function detectInternalNarration(text, addresseeName) {
43572
+ const t = String(text ?? "");
43573
+ if (!t.trim() || shouldDeliverWithoutClassifying(t)) return null;
43574
+ if (STAND_DOWN_NARRATION.some((re) => re.test(t))) return "stand_down";
43575
+ const raw = String(addresseeName ?? "").trim().split(/\s+/)[0] ?? "";
43576
+ const first = raw.charAt(0).toUpperCase() + raw.slice(1);
43577
+ if (first.length >= 3) {
43578
+ const escaped = first.replace(/[.*+?^\${}()|[\]\\]/g, "\\$&");
43579
+ if (new RegExp(`\\b${escaped}\\b`).test(withoutAddress(t, first))) {
43580
+ return "third_person_addressee";
43581
+ }
43582
+ }
43583
+ return null;
43584
+ }
43585
+ function summariseRecoveryMarkers(markers) {
43586
+ const owed = markers.filter((m) => !m.owesNoReply);
43587
+ const newest = (list) => [...list].sort((a, b) => Number(b.messageTs) - Number(a.messageTs))[0];
43588
+ if (owed.length === 0) {
43589
+ return {
43590
+ owesNoReply: true,
43591
+ hasPayload: markers.every((m) => m.hasPayload),
43592
+ replayCount: Math.max(...markers.map((m) => m.replayCount)),
43593
+ addresseeName: newest(markers)?.addresseeName
43594
+ };
43595
+ }
43596
+ return {
43597
+ owesNoReply: false,
43598
+ hasPayload: owed.every((m) => m.hasPayload),
43599
+ replayCount: Math.min(...owed.map((m) => m.replayCount)),
43600
+ maxReplayCount: Math.max(...owed.map((m) => m.replayCount)),
43601
+ addresseeName: newest(owed)?.addresseeName
43602
+ };
43603
+ }
43604
+ var UNREADABLE_RECOVERY_MARKER = {
43605
+ owesNoReply: false,
43606
+ hasPayload: false,
43607
+ replayCount: 0,
43608
+ messageTs: ""
43609
+ };
43610
+ function decideNarrationGuard(opts) {
43611
+ if (!opts.match || opts.mode !== "enforce") return "publish";
43612
+ if (!opts.marker) return "publish";
43613
+ if (opts.marker.owesNoReply) return "close";
43614
+ if (!opts.marker.hasPayload || !opts.replayEnabled) return "publish";
43615
+ const mostReplays = opts.marker.maxReplayCount ?? opts.marker.replayCount;
43616
+ if (opts.match === "third_person_addressee" && mostReplays >= opts.maxReplays) return "publish";
43617
+ if (opts.marker.replayCount < opts.maxReplays) return "redeliver";
43618
+ return opts.match === "stand_down" ? "close" : "publish";
43619
+ }
43516
43620
  async function decideRecovery(text, mode, env2 = process.env, classify = classifyRecoveredReply) {
43517
43621
  if (shouldDeliverWithoutClassifying(text)) {
43518
43622
  return { action: "deliver", mode, verdict: "pre-gate-deliver", wouldSuppress: false };
@@ -47741,6 +47845,42 @@ function readSlackThreadMarkerState(channel, threadTs) {
47741
47845
  humanOwed: markers.some((m) => m.ingress_only !== true)
47742
47846
  };
47743
47847
  }
47848
+ function readRecoveryMarkerState(channel, threadTs, markerName) {
47849
+ if (!SLACK_PENDING_INBOUND_DIR) return null;
47850
+ const markers = [];
47851
+ const collect = (fullPath) => {
47852
+ let raw;
47853
+ try {
47854
+ raw = readFileSync20(fullPath, "utf-8");
47855
+ } catch (err) {
47856
+ if (err.code !== "ENOENT") markers.push(UNREADABLE_RECOVERY_MARKER);
47857
+ return;
47858
+ }
47859
+ try {
47860
+ const m = JSON.parse(raw);
47861
+ markers.push({
47862
+ owesNoReply: markerOwesNoReply(m),
47863
+ hasPayload: Boolean(m.payload),
47864
+ replayCount: m.replay_count ?? 0,
47865
+ messageTs: m.message_ts ?? "",
47866
+ addresseeName: m.payload?.meta?.["user_name"]
47867
+ });
47868
+ } catch {
47869
+ markers.push(UNREADABLE_RECOVERY_MARKER);
47870
+ }
47871
+ };
47872
+ try {
47873
+ if (threadTs) {
47874
+ markSeenAllSlackPendingMarkersForThread(SLACK_PENDING_INBOUND_DIR, channel, threadTs, collect);
47875
+ } else if (markerName) {
47876
+ collect(join22(SLACK_PENDING_INBOUND_DIR, basename(markerName)));
47877
+ }
47878
+ } catch {
47879
+ return null;
47880
+ }
47881
+ if (markers.length === 0) return null;
47882
+ return summariseRecoveryMarkers(markers);
47883
+ }
47744
47884
  async function processSlackRecoveryOutboxFile(filename) {
47745
47885
  if (!SLACK_RECOVERY_OUTBOX_DIR) return;
47746
47886
  if (filename.endsWith(".poison.json") || filename.endsWith(".tmp")) return;
@@ -47804,6 +47944,46 @@ async function processSlackRecoveryOutboxFile(filename) {
47804
47944
  }
47805
47945
  return;
47806
47946
  }
47947
+ const narrationGuardMode = resolveGhostReplyNarrationGuardMode();
47948
+ if (narrationGuardMode !== "off") {
47949
+ const recoveryMarker = readRecoveryMarkerState(payload.channel, payload.thread_ts, payload.marker_name);
47950
+ const narration = detectInternalNarration(text, recoveryMarker?.addresseeName);
47951
+ const narrationAction = decideNarrationGuard({
47952
+ match: narration,
47953
+ mode: narrationGuardMode,
47954
+ marker: recoveryMarker,
47955
+ maxReplays: MAX_MARKER_REPLAYS,
47956
+ replayEnabled: channelReplayEnabled()
47957
+ });
47958
+ if (narration) {
47959
+ const enforceAction = decideNarrationGuard({
47960
+ match: narration,
47961
+ mode: "enforce",
47962
+ marker: recoveryMarker,
47963
+ maxReplays: MAX_MARKER_REPLAYS,
47964
+ replayEnabled: channelReplayEnabled()
47965
+ });
47966
+ process.stderr.write(
47967
+ `slack-channel(${AGENT_CODE_NAME}): ghost-reply narration match=${narration} mode=${narrationGuardMode} action=${narrationAction} enforce_action=${enforceAction} channel=${redactSlackId(payload.channel)} thread=${redactSlackId(payload.thread_ts)} text_len=${text.length}
47968
+ `
47969
+ );
47970
+ }
47971
+ if (narrationAction !== "publish") {
47972
+ if (narrationAction === "close" && payload.thread_ts) clearPendingMessage(payload.channel, payload.thread_ts);
47973
+ if (narrationAction === "close" && recoveryMarker && !recoveryMarker.owesNoReply) {
47974
+ process.stderr.write(
47975
+ `slack-channel(${AGENT_CODE_NAME}): ghost-reply narration lost_owed_reply=1 match=${narration} replays=${recoveryMarker.replayCount} channel=${redactSlackId(payload.channel)} thread=${redactSlackId(payload.thread_ts)} text_len=${text.length}
47976
+ `
47977
+ );
47978
+ }
47979
+ removeRecoveryLedgerEntry(SLACK_RECOVERY_LEDGER_DIR, payload.marker_name);
47980
+ try {
47981
+ unlinkSync7(fullPath);
47982
+ } catch {
47983
+ }
47984
+ return;
47985
+ }
47986
+ }
47807
47987
  const ghostReplyMode = resolveGhostReplyMode();
47808
47988
  if (ghostReplyMode !== "off") {
47809
47989
  const decision = await decideRecovery(text, ghostReplyMode);
@@ -34013,6 +34013,28 @@ function linkOpenerScript(frameId) {
34013
34013
  }
34014
34014
  var WRAPPER_LINK_OPENER = linkOpenerScript("al-doc");
34015
34015
 
34016
+ // ../core/dist/integrations/augmented-live/asset.js
34017
+ var MB = 1024 * 1024;
34018
+ var ASSET_TYPES = {
34019
+ "image/png": { ext: "png", maxBytes: 5 * MB, enabled: true },
34020
+ "image/jpeg": { ext: "jpg", maxBytes: 5 * MB, enabled: true },
34021
+ "image/webp": { ext: "webp", maxBytes: 5 * MB, enabled: true },
34022
+ "image/gif": { ext: "gif", maxBytes: 10 * MB, enabled: true },
34023
+ // Video (guided-tour narration clips). Inert ISO-BMFF / EBML containers — like
34024
+ // the rasters and mp3 above, not active content — so serving them as top-level
34025
+ // same-origin asset URLs is safe (the SVG/HTML-polyglot risk in the module
34026
+ // header doesn't apply; publish-time magic-byte sniffing enforces it). Uploads
34027
+ // are presigned-PUT straight to S3, and S3+CloudFront serve range requests so
34028
+ // <video> seeking works.
34029
+ "video/mp4": { ext: "mp4", maxBytes: 100 * MB, enabled: true },
34030
+ "video/webm": { ext: "webm", maxBytes: 100 * MB, enabled: true },
34031
+ // ENG-7048: enabled for server-generated ElevenLabs voiceover (text-to-speech).
34032
+ // MP3 is an inert binary container (like the rasters above), so serving it as a
34033
+ // top-level same-origin asset URL is safe — the SVG/HTML-polyglot risk in the
34034
+ // module header does not apply. Embedded as <audio src=...> in the page HTML.
34035
+ "audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
34036
+ };
34037
+
34016
34038
  // ../core/dist/integrations/augmented-live/publisher.js
34017
34039
  var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
34018
34040
  var presenterChromeCss = `
@@ -34048,28 +34070,6 @@ var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN
34048
34070
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34049
34071
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34050
34072
 
34051
- // ../core/dist/integrations/augmented-live/asset.js
34052
- var MB = 1024 * 1024;
34053
- var ASSET_TYPES = {
34054
- "image/png": { ext: "png", maxBytes: 5 * MB, enabled: true },
34055
- "image/jpeg": { ext: "jpg", maxBytes: 5 * MB, enabled: true },
34056
- "image/webp": { ext: "webp", maxBytes: 5 * MB, enabled: true },
34057
- "image/gif": { ext: "gif", maxBytes: 10 * MB, enabled: true },
34058
- // Video (guided-tour narration clips). Inert ISO-BMFF / EBML containers — like
34059
- // the rasters and mp3 above, not active content — so serving them as top-level
34060
- // same-origin asset URLs is safe (the SVG/HTML-polyglot risk in the module
34061
- // header doesn't apply; publish-time magic-byte sniffing enforces it). Uploads
34062
- // are presigned-PUT straight to S3, and S3+CloudFront serve range requests so
34063
- // <video> seeking works.
34064
- "video/mp4": { ext: "mp4", maxBytes: 100 * MB, enabled: true },
34065
- "video/webm": { ext: "webm", maxBytes: 100 * MB, enabled: true },
34066
- // ENG-7048: enabled for server-generated ElevenLabs voiceover (text-to-speech).
34067
- // MP3 is an inert binary container (like the rasters above), so serving it as a
34068
- // top-level same-origin asset URL is safe — the SVG/HTML-polyglot risk in the
34069
- // module header does not apply. Embedded as <audio src=...> in the page HTML.
34070
- "audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
34071
- };
34072
-
34073
34073
  // ../core/dist/integrations/augmented-live/codec.js
34074
34074
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
34075
34075
  var textEncoder = new TextEncoder();
@@ -39367,6 +39367,23 @@ var FLAG_REGISTRY = [
39367
39367
  // change (ADR-0022 sensitive-flag confirm).
39368
39368
  sensitive: true
39369
39369
  },
39370
+ {
39371
+ key: "ghost-reply-narration-guard",
39372
+ description: "Model-free guard on the SLACK ghost-reply RECOVERY path (CS-1821, CS-1429, ENG-7780); Telegram and Teams recovery do not run it. Recovered end-of-turn text with no second person, question, link or mention, that uses stand-down wording or names the person being answered in the third person, is not published. enforce = keep the marker so the inbound is re-delivered and the agent can answer properly. When re-deliveries run out, stand-down wording closes unposted and a name-only match publishes; with no reply owed, either closes. shadow = log only. off = never runs. A false match usually costs a re-ask; a real reply using stand-down wording every time is lost.",
39373
+ flagType: "enum",
39374
+ allowedValues: ["off", "shadow", "enforce"],
39375
+ // Ships in SHADOW: a free local log line, like every enum flag here, enforce is a
39376
+ // deliberate flip. Read the match log before flipping: a false match usually costs
39377
+ // a re-ask, but one repeated on every re-delivery loses the reply.
39378
+ defaultValue: "shadow",
39379
+ envVar: "AGT_GHOST_REPLY_NARRATION_GUARD_MODE",
39380
+ sensitive: true,
39381
+ // DELIBERATE UNREACHABLE PLACEHOLDER, not a real threshold. The reader is host-side
39382
+ // (the channel MCP), so a host on an older agt-cli ignores this flag. Replace it with
39383
+ // the first published agt-cli carrying the reader before flipping to enforce. Same
39384
+ // convention as `github-broker-credentials`.
39385
+ since: "0.29.0"
39386
+ },
39370
39387
  {
39371
39388
  key: "slack-scheduled-channel-guard",
39372
39389
  description: 'Guard on slack.reply that refuses to let an active scheduled-task destination silently move a reply to a DIFFERENT channel than the agent named (ENG-8137). CS-1505 gave an explicit inbound_id priority over the task destination but left the no-inbound_id case treating "no inbound reference" as "no destination specified" - and `channel` is a REQUIRED argument, so every call names one. The symptom: a question asked in one channel answered in another, and a reply meant as a DM landing in a public channel. Fires only when the marker carries an EXPLICIT target, the named channel differs from it, and neither an inbound_id, an enforce binding, nor an ENG-7542 channel correction is available to arbitrate. off = never runs (today behaviour: silent retarget). shadow = count + log the would-block but STILL route as today, so the false-positive rate is measurable before anyone refuses a send. enforce = block the reply and tell the agent to retry. Read live from the heartbeat flags-cache (or the env override). NOTE: enforce is currently CLAMPED to shadow host-side and setting it here will not take effect - it stays blocked until ENG-8142 teaches the Stop hook to tell a refused reply from a delivered one, because until then a blocked send fails silently (no recovery, no re-prompt, nothing in the channel). Lifting the clamp is a code change, not a flag flip.',
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-POD2ZTMG.js";
72
- import "./chunk-Y26MLRXC.js";
71
+ } from "./chunk-REX6HMS6.js";
72
+ import "./chunk-6TXC2YC3.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-R4EJS4TN.js";
76
+ import "./chunk-JM4J6GYJ.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-IXSNL2L3.js.map
150
+ //# sourceMappingURL=persistent-session-UJBNO5IF.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-POD2ZTMG.js";
4
- import "./chunk-Y26MLRXC.js";
3
+ } from "./chunk-REX6HMS6.js";
4
+ import "./chunk-6TXC2YC3.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-R4EJS4TN.js";
8
+ import "./chunk-JM4J6GYJ.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-6WBSEIIK.js.map
807
+ //# sourceMappingURL=responsiveness-probe-6BELVQ42.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-Y26MLRXC.js";
4
- import "./chunk-R4EJS4TN.js";
3
+ } from "./chunk-6TXC2YC3.js";
4
+ import "./chunk-JM4J6GYJ.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-M6XDFGDM.js.map
208
+ //# sourceMappingURL=session-auth-dead-RLOWHZ3T.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1208",
3
+ "version": "0.28.1210",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {