@integrity-labs/agt-cli 0.28.1232 → 0.28.1233

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-BDXOVKWJ.js → chunk-4FLMCHQB.js} +2 -2
  3. package/dist/{chunk-QCBL7EBD.js → chunk-DQEUE2X2.js} +2 -2
  4. package/dist/{chunk-3CUCO6BU.js → chunk-HI4JD2K2.js} +3 -3
  5. package/dist/{chunk-LS27F6QF.js → chunk-VGEMWYW3.js} +5 -5
  6. package/dist/{chunk-XBADGTJP.js → chunk-XXIALNTU.js} +213 -1
  7. package/dist/chunk-XXIALNTU.js.map +1 -0
  8. package/dist/{claude-code-updater-R7QSZDGD.js → claude-code-updater-UTFTOX3B.js} +3 -3
  9. package/dist/{claude-pair-runtime-BH7XN36C.js → claude-pair-runtime-DI43DJ4P.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/direct-chat-channel.js +212 -0
  12. package/dist/mcp/index.js +212 -0
  13. package/dist/mcp/origami.js +212 -0
  14. package/dist/mcp/slack-channel.js +212 -0
  15. package/dist/mcp/telegram-channel.js +212 -0
  16. package/dist/{persistent-session-LQ4GJ264.js → persistent-session-S57KHU34.js} +4 -4
  17. package/dist/{responsiveness-probe-NN7XEPJM.js → responsiveness-probe-TFPKYDPB.js} +4 -4
  18. package/dist/{session-auth-dead-ESB735FG.js → session-auth-dead-EYJAWW46.js} +3 -3
  19. package/package.json +1 -1
  20. package/dist/chunk-XBADGTJP.js.map +0 -1
  21. /package/dist/{chunk-BDXOVKWJ.js.map → chunk-4FLMCHQB.js.map} +0 -0
  22. /package/dist/{chunk-QCBL7EBD.js.map → chunk-DQEUE2X2.js.map} +0 -0
  23. /package/dist/{chunk-3CUCO6BU.js.map → chunk-HI4JD2K2.js.map} +0 -0
  24. /package/dist/{chunk-LS27F6QF.js.map → chunk-VGEMWYW3.js.map} +0 -0
  25. /package/dist/{claude-code-updater-R7QSZDGD.js.map → claude-code-updater-UTFTOX3B.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-BH7XN36C.js.map → claude-pair-runtime-DI43DJ4P.js.map} +0 -0
  27. /package/dist/{persistent-session-LQ4GJ264.js.map → persistent-session-S57KHU34.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-NN7XEPJM.js.map → responsiveness-probe-TFPKYDPB.js.map} +0 -0
  29. /package/dist/{session-auth-dead-ESB735FG.js.map → session-auth-dead-EYJAWW46.js.map} +0 -0
@@ -33813,6 +33813,216 @@ var MARKUP_BRIDGE_SCRIPT = `<script>(function(){
33813
33813
  });
33814
33814
  })();</script>`;
33815
33815
 
33816
+ // ../core/dist/integrations/augmented-live/deck-phone-fit.js
33817
+ var DECK_PHONE_FILL_MAX_HEIGHT_PX = 500;
33818
+ var DECK_PHONE_FILL_MIN_WIDTH_PX = 560;
33819
+ var FIXER = String.raw`(function () {
33820
+ // ENG-8819: phone fit for Ninja Canvas slide decks, injected by the viewer shell so it
33821
+ // reaches decks that are already published. Acts only on a deck (a #stage holding
33822
+ // .slide elements); every other page is left alone.
33823
+ var stage = document.getElementById('stage');
33824
+ if (!stage || !stage.querySelector('.slide')) return;
33825
+ var root = document.documentElement;
33826
+ var css = document.createElement('style');
33827
+ css.id = 'agt-deck-phone-fit';
33828
+ css.textContent =
33829
+ // The stage is a flex item in deck mode. Without this it shrinks to the viewport
33830
+ // width before it is scaled, so a phone in landscape got a narrow, clipped slide.
33831
+ 'html.deck-js #stage{flex-shrink:0}' +
33832
+ // Fill-width mode (short landscape screens): the slide is wider than tall enough
33833
+ // to fit, so let the page scroll vertically instead of letterboxing it.
33834
+ 'html.deck-js.agt-fill,html.deck-js.agt-fill body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}' +
33835
+ 'html.deck-js.agt-fill body{display:block}' +
33836
+ 'html.deck-js.agt-fill #stage{transform:none!important;transform-origin:0 0}' +
33837
+ // Room to scroll the end of the page clear of the viewer chrome fixed along the
33838
+ // bottom edge (the HUD row in landscape; Download and the badge in portrait).
33839
+ 'html.deck-js.agt-fill body{padding-bottom:76px}' +
33840
+ 'html:not(.deck-js) body{padding-bottom:124px}' +
33841
+ // Portrait reads as a scrolling page, so the rotate prompt is not needed (and sat on
33842
+ // top of the viewer Download button).
33843
+ 'html:not(.deck-js) #rotate-hint{display:none!important}';
33844
+ (document.head || root).appendChild(css);
33845
+
33846
+ // Shared with the shell's chrome CSS (deckPhoneChromeCss), so the slide only fills
33847
+ // the width where the shell has also moved Download and the badge out of its way.
33848
+ var PHONE_MAX_H = __AGT_MAX_H__, PHONE_MIN_W = __AGT_MIN_W__;
33849
+ var stageZoom0 = stage.style.zoom;
33850
+ var lastSlide = -1;
33851
+
33852
+ function activeIndex() {
33853
+ var s = stage.querySelectorAll('.slide');
33854
+ for (var i = 0; i < s.length; i++) if (s[i].classList.contains('is-active')) return i;
33855
+ return -1;
33856
+ }
33857
+
33858
+ function fitDeck() {
33859
+ var w = innerWidth, h = innerHeight;
33860
+ // The canvas is whatever the deck declares (1280x720 in the skeleton, but a deck
33861
+ // may set its own), read from layout: transform does not change offsetWidth.
33862
+ stage.style.zoom = stageZoom0;
33863
+ var cw = stage.offsetWidth || 1280, ch = stage.offsetHeight || 720;
33864
+ // Height binds when the window is wider than the canvas. On a phone in landscape
33865
+ // that left a third of the screen empty; fill the width and scroll instead.
33866
+ var fill = w / h > cw / ch && h <= PHONE_MAX_H && w >= PHONE_MIN_W;
33867
+ root.classList.toggle('agt-fill', fill);
33868
+ // Scale to the width the page actually lays out in. innerWidth includes a classic
33869
+ // (non-overlay) scrollbar, and fill mode always scrolls, so on a short desktop
33870
+ // window that would push the slide's right edge under overflow-x:hidden. Read after
33871
+ // the class is on, so the scrollbar it turns on is already taken out.
33872
+ if (fill) stage.style.zoom = (root.clientWidth || w) / cw;
33873
+ var a = activeIndex();
33874
+ if (fill && a !== lastSlide) scrollTo(0, 0);
33875
+ lastSlide = a;
33876
+ }
33877
+
33878
+ // Narrow (portrait) mode stacks the slides as a page, but a slide authored for
33879
+ // 1280px still carries blocks that do not fit 390px, and they were clipped at the
33880
+ // right edge. In order, least destructive first: a multi-column grid becomes one
33881
+ // column, unwrappable text wraps, and only what still overflows (a cover canvas,
33882
+ // a diagram drawn at a fixed size) is scaled down to fit.
33883
+ var MARK = 'data-agt-fit';
33884
+ // Every inline value the narrow pass overwrites is recorded first and put back on
33885
+ // undo. Clearing to '' instead would wipe a deck's own inline layout (a
33886
+ // style="grid-template-columns:..." slide) the first time the phone rotated.
33887
+ var touched = [];
33888
+ function put(el, prop, val, mark) {
33889
+ touched.push([el, prop, el.style[prop]]);
33890
+ el.style[prop] = val;
33891
+ // Never downgrade a 'zoom' mark (Obi Wan 9a6ba37489c2): a zoomed block that is also
33892
+ // a grid child getting 'col' would lose the closest('[data-agt-fit="zoom"]')
33893
+ // exclusion, and passes 3 and 4 could wrap or zoom inside it again (a double scale).
33894
+ if (el.getAttribute(MARK) !== 'zoom') el.setAttribute(MARK, mark);
33895
+ }
33896
+ function undoNarrow() {
33897
+ for (var i = touched.length - 1; i >= 0; i--) {
33898
+ touched[i][0].style[touched[i][1]] = touched[i][2];
33899
+ touched[i][0].removeAttribute(MARK);
33900
+ }
33901
+ touched = [];
33902
+ }
33903
+ function overflowing(el, limit) {
33904
+ var r = el.getBoundingClientRect();
33905
+ return r.width > 0 && r.right > limit + 1;
33906
+ }
33907
+ function fitNarrow() {
33908
+ undoNarrow();
33909
+ var slides = stage.querySelectorAll('.slide');
33910
+ for (var j = 0; j < slides.length; j++) {
33911
+ var sl = slides[j], limit = sl.getBoundingClientRect().right;
33912
+ var all = sl.querySelectorAll('*'), k, el, cs;
33913
+ var padR = parseFloat(getComputedStyle(sl).paddingRight) || 0;
33914
+ // A block drawn at a fixed width wider than the column (a cover canvas) is a
33915
+ // picture, not a layout: scale it whole first, and never reflow inside it.
33916
+ for (k = 0; k < all.length; k++) {
33917
+ el = all[k];
33918
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
33919
+ cs = getComputedStyle(el);
33920
+ var fixedW = parseFloat(cs.width);
33921
+ var rr = el.getBoundingClientRect(), room = limit - padR - rr.left;
33922
+ if (/px$/.test(el.style.width || '') || (cs.display !== 'grid' && fixedW > room + 1 && room > 40 && el.children.length > 0 && overflowing(el, limit) && fixedW >= 600)) {
33923
+ if (!overflowing(el, limit) || room <= 40) continue;
33924
+ put(el, 'zoom', Math.max(0.2, room / rr.width), 'zoom');
33925
+ // The slide keeps its full-screen min-height; shrink it to the scaled
33926
+ // picture so there is no empty screen under it. Never below the picture.
33927
+ var sr = sl.getBoundingClientRect(), er = el.getBoundingClientRect();
33928
+ var need = Math.ceil(er.bottom - sr.top + (parseFloat(getComputedStyle(sl).paddingBottom) || 0));
33929
+ if (need > 80 && need < sr.height) put(sl, 'minHeight', need + 'px', 'slide');
33930
+ }
33931
+ }
33932
+ for (k = 0; k < all.length; k++) {
33933
+ el = all[k];
33934
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
33935
+ cs = getComputedStyle(el);
33936
+ if ((cs.display === 'grid' || cs.display === 'inline-grid') && cs.gridTemplateColumns.split(' ').length > 1 &&
33937
+ (el.scrollWidth > el.clientWidth + 1 || overflowing(el, limit))) {
33938
+ // A cell whose content is absolutely positioned took its height from the
33939
+ // row it shared; keep that height, or its drawing collapses on itself.
33940
+ var keep = [];
33941
+ for (var q = 0; q < el.children.length; q++) {
33942
+ var ch = el.children[q], abs = false, ds = ch.querySelectorAll('*');
33943
+ for (var z = 0; z < ds.length && !abs; z++) abs = getComputedStyle(ds[z]).position === 'absolute';
33944
+ keep.push(abs ? ch.getBoundingClientRect().height : 0);
33945
+ }
33946
+ put(el, 'gridTemplateColumns', 'minmax(0,1fr)', 'reflow');
33947
+ for (q = 0; q < el.children.length; q++) {
33948
+ if (keep[q] > 0 && el.children[q].getBoundingClientRect().height < keep[q] - 1) {
33949
+ put(el.children[q], 'minHeight', Math.round(keep[q]) + 'px', 'keep');
33950
+ }
33951
+ }
33952
+ for (var c = 0; c < el.children.length; c++) {
33953
+ if (getComputedStyle(el.children[c]).gridColumnStart !== 'auto') put(el.children[c], 'gridColumn', 'auto', 'col');
33954
+ }
33955
+ } else if (cs.display.indexOf('flex') > -1 && cs.flexDirection.indexOf('row') === 0 && cs.flexWrap === 'nowrap' &&
33956
+ el.children.length > 1 && overflowing(el.lastElementChild || el, limit)) {
33957
+ put(el, 'flexWrap', 'wrap', 'wrap');
33958
+ }
33959
+ }
33960
+ for (k = 0; k < all.length; k++) {
33961
+ el = all[k];
33962
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
33963
+ if (el.children.length === 0 && overflowing(el, limit) && getComputedStyle(el).whiteSpace.indexOf('nowrap') > -1) {
33964
+ put(el, 'whiteSpace', 'normal', 'text');
33965
+ }
33966
+ }
33967
+ for (k = 0; k < all.length; k++) {
33968
+ el = all[k];
33969
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
33970
+ if (!overflowing(el, limit)) continue;
33971
+ var r = el.getBoundingClientRect(), avail = limit - padR - r.left;
33972
+ if (avail <= 40) continue;
33973
+ put(el, 'zoom', Math.max(0.2, avail / r.width), 'zoom');
33974
+ }
33975
+ }
33976
+ }
33977
+
33978
+ // Obi Wan 73a833f8f833: the narrow (stacked) layout depends on WIDTH only, but iOS
33979
+ // fires resize and visualViewport resize as its toolbars collapse during an ordinary
33980
+ // scroll, changing only the height. Re-running fitNarrow there would revert and
33981
+ // re-measure every slide mid-scroll and could make the page jump. So a narrow re-fit
33982
+ // runs only when the width changed, when leaving deck mode, or on load (content sizes).
33983
+ var narrowW = -1;
33984
+ function apply() {
33985
+ try {
33986
+ if (root.classList.contains('deck-js')) {
33987
+ narrowW = -1;
33988
+ undoNarrow();
33989
+ fitDeck();
33990
+ } else {
33991
+ root.classList.remove('agt-fill');
33992
+ stage.style.zoom = stageZoom0;
33993
+ var nw = root.clientWidth || innerWidth;
33994
+ if (nw === narrowW) return;
33995
+ fitNarrow();
33996
+ narrowW = nw;
33997
+ }
33998
+ } catch (e) {
33999
+ // Never break the deck over a fit problem, but leave a trace (and a hook for
34000
+ // tests) rather than swallowing it.
34001
+ window.__agtDeckFitError = String((e && e.message) || e);
34002
+ }
34003
+ }
34004
+
34005
+ var t = 0;
34006
+ function later() {
34007
+ apply();
34008
+ // iOS reports the new size a beat after resize/orientationchange fires.
34009
+ clearTimeout(t);
34010
+ t = setTimeout(apply, 250);
34011
+ if (window.requestAnimationFrame) requestAnimationFrame(apply);
34012
+ }
34013
+ addEventListener('resize', later);
34014
+ addEventListener('orientationchange', later);
34015
+ // Load can change content sizes (images) at the same width, so it always re-fits.
34016
+ addEventListener('load', function () { narrowW = -1; later(); });
34017
+ if (window.visualViewport) visualViewport.addEventListener('resize', later);
34018
+ // Slide changes: keep fill mode scrolled to the top of the new slide.
34019
+ try { new MutationObserver(function () { if (root.classList.contains('agt-fill')) fitDeck(); })
34020
+ .observe(stage, { subtree: true, attributes: true, attributeFilter: ['class'] }); } catch (e) {}
34021
+ later();
34022
+ })();`;
34023
+ var DECK_PHONE_FIT_SOURCE = FIXER.replace("__AGT_MAX_H__", String(DECK_PHONE_FILL_MAX_HEIGHT_PX)).replace("__AGT_MIN_W__", String(DECK_PHONE_FILL_MIN_WIDTH_PX));
34024
+ var DECK_PHONE_FIT_SCRIPT = '<script id="agt-deck-phone-fit-js">' + DECK_PHONE_FIT_SOURCE + "</script>";
34025
+
33816
34026
  // ../core/dist/integrations/augmented-live/live-hosts.js
33817
34027
  function linkOpenerScript(frameId) {
33818
34028
  return 'function alOpenBar(u){var o=document.getElementById("al-open");if(o)o.parentNode.removeChild(o);var b=document.createElement("div");b.id="al-open";b.setAttribute("role","status");b.appendChild(document.createTextNode("Open link to "));var a=document.createElement("a");a.href=u.href;a.target="_blank";a.rel="noopener noreferrer";a.textContent=u.host;a.addEventListener("click",function(){setTimeout(function(){if(b.parentNode)b.parentNode.removeChild(b);},0);});b.appendChild(a);var x=document.createElement("button");x.type="button";x.setAttribute("aria-label","Dismiss");x.textContent="\xD7";x.addEventListener("click",function(){if(b.parentNode)b.parentNode.removeChild(b);});b.appendChild(x);document.body.appendChild(b);}window.addEventListener("message",function(e){var f=document.getElementById(' + JSON.stringify(frameId) + ');if(!f||e.source!==f.contentWindow||e.origin!=="null")return;var d=e.data;if(!d||d.type!=="al-open"||typeof d.url!=="string")return;var u;try{u=new URL(d.url);}catch(x){return;}if(u.protocol!=="https:"||u.username||u.password)return;var w=window.open(u.href,"_blank");if(w){try{w.opener=null;}catch(x){}}else{alOpenBar(u);}});';
@@ -33875,6 +34085,8 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
33875
34085
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
33876
34086
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
33877
34087
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34088
+ var DECK_PRINT_BUTTON_W_PX = 72;
34089
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
33878
34090
 
33879
34091
  // ../core/dist/integrations/augmented-live/codec.js
33880
34092
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -34010,6 +34010,216 @@ var MARKUP_BRIDGE_SCRIPT = `<script>(function(){
34010
34010
  });
34011
34011
  })();</script>`;
34012
34012
 
34013
+ // ../core/dist/integrations/augmented-live/deck-phone-fit.js
34014
+ var DECK_PHONE_FILL_MAX_HEIGHT_PX = 500;
34015
+ var DECK_PHONE_FILL_MIN_WIDTH_PX = 560;
34016
+ var FIXER = String.raw`(function () {
34017
+ // ENG-8819: phone fit for Ninja Canvas slide decks, injected by the viewer shell so it
34018
+ // reaches decks that are already published. Acts only on a deck (a #stage holding
34019
+ // .slide elements); every other page is left alone.
34020
+ var stage = document.getElementById('stage');
34021
+ if (!stage || !stage.querySelector('.slide')) return;
34022
+ var root = document.documentElement;
34023
+ var css = document.createElement('style');
34024
+ css.id = 'agt-deck-phone-fit';
34025
+ css.textContent =
34026
+ // The stage is a flex item in deck mode. Without this it shrinks to the viewport
34027
+ // width before it is scaled, so a phone in landscape got a narrow, clipped slide.
34028
+ 'html.deck-js #stage{flex-shrink:0}' +
34029
+ // Fill-width mode (short landscape screens): the slide is wider than tall enough
34030
+ // to fit, so let the page scroll vertically instead of letterboxing it.
34031
+ 'html.deck-js.agt-fill,html.deck-js.agt-fill body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}' +
34032
+ 'html.deck-js.agt-fill body{display:block}' +
34033
+ 'html.deck-js.agt-fill #stage{transform:none!important;transform-origin:0 0}' +
34034
+ // Room to scroll the end of the page clear of the viewer chrome fixed along the
34035
+ // bottom edge (the HUD row in landscape; Download and the badge in portrait).
34036
+ 'html.deck-js.agt-fill body{padding-bottom:76px}' +
34037
+ 'html:not(.deck-js) body{padding-bottom:124px}' +
34038
+ // Portrait reads as a scrolling page, so the rotate prompt is not needed (and sat on
34039
+ // top of the viewer Download button).
34040
+ 'html:not(.deck-js) #rotate-hint{display:none!important}';
34041
+ (document.head || root).appendChild(css);
34042
+
34043
+ // Shared with the shell's chrome CSS (deckPhoneChromeCss), so the slide only fills
34044
+ // the width where the shell has also moved Download and the badge out of its way.
34045
+ var PHONE_MAX_H = __AGT_MAX_H__, PHONE_MIN_W = __AGT_MIN_W__;
34046
+ var stageZoom0 = stage.style.zoom;
34047
+ var lastSlide = -1;
34048
+
34049
+ function activeIndex() {
34050
+ var s = stage.querySelectorAll('.slide');
34051
+ for (var i = 0; i < s.length; i++) if (s[i].classList.contains('is-active')) return i;
34052
+ return -1;
34053
+ }
34054
+
34055
+ function fitDeck() {
34056
+ var w = innerWidth, h = innerHeight;
34057
+ // The canvas is whatever the deck declares (1280x720 in the skeleton, but a deck
34058
+ // may set its own), read from layout: transform does not change offsetWidth.
34059
+ stage.style.zoom = stageZoom0;
34060
+ var cw = stage.offsetWidth || 1280, ch = stage.offsetHeight || 720;
34061
+ // Height binds when the window is wider than the canvas. On a phone in landscape
34062
+ // that left a third of the screen empty; fill the width and scroll instead.
34063
+ var fill = w / h > cw / ch && h <= PHONE_MAX_H && w >= PHONE_MIN_W;
34064
+ root.classList.toggle('agt-fill', fill);
34065
+ // Scale to the width the page actually lays out in. innerWidth includes a classic
34066
+ // (non-overlay) scrollbar, and fill mode always scrolls, so on a short desktop
34067
+ // window that would push the slide's right edge under overflow-x:hidden. Read after
34068
+ // the class is on, so the scrollbar it turns on is already taken out.
34069
+ if (fill) stage.style.zoom = (root.clientWidth || w) / cw;
34070
+ var a = activeIndex();
34071
+ if (fill && a !== lastSlide) scrollTo(0, 0);
34072
+ lastSlide = a;
34073
+ }
34074
+
34075
+ // Narrow (portrait) mode stacks the slides as a page, but a slide authored for
34076
+ // 1280px still carries blocks that do not fit 390px, and they were clipped at the
34077
+ // right edge. In order, least destructive first: a multi-column grid becomes one
34078
+ // column, unwrappable text wraps, and only what still overflows (a cover canvas,
34079
+ // a diagram drawn at a fixed size) is scaled down to fit.
34080
+ var MARK = 'data-agt-fit';
34081
+ // Every inline value the narrow pass overwrites is recorded first and put back on
34082
+ // undo. Clearing to '' instead would wipe a deck's own inline layout (a
34083
+ // style="grid-template-columns:..." slide) the first time the phone rotated.
34084
+ var touched = [];
34085
+ function put(el, prop, val, mark) {
34086
+ touched.push([el, prop, el.style[prop]]);
34087
+ el.style[prop] = val;
34088
+ // Never downgrade a 'zoom' mark (Obi Wan 9a6ba37489c2): a zoomed block that is also
34089
+ // a grid child getting 'col' would lose the closest('[data-agt-fit="zoom"]')
34090
+ // exclusion, and passes 3 and 4 could wrap or zoom inside it again (a double scale).
34091
+ if (el.getAttribute(MARK) !== 'zoom') el.setAttribute(MARK, mark);
34092
+ }
34093
+ function undoNarrow() {
34094
+ for (var i = touched.length - 1; i >= 0; i--) {
34095
+ touched[i][0].style[touched[i][1]] = touched[i][2];
34096
+ touched[i][0].removeAttribute(MARK);
34097
+ }
34098
+ touched = [];
34099
+ }
34100
+ function overflowing(el, limit) {
34101
+ var r = el.getBoundingClientRect();
34102
+ return r.width > 0 && r.right > limit + 1;
34103
+ }
34104
+ function fitNarrow() {
34105
+ undoNarrow();
34106
+ var slides = stage.querySelectorAll('.slide');
34107
+ for (var j = 0; j < slides.length; j++) {
34108
+ var sl = slides[j], limit = sl.getBoundingClientRect().right;
34109
+ var all = sl.querySelectorAll('*'), k, el, cs;
34110
+ var padR = parseFloat(getComputedStyle(sl).paddingRight) || 0;
34111
+ // A block drawn at a fixed width wider than the column (a cover canvas) is a
34112
+ // picture, not a layout: scale it whole first, and never reflow inside it.
34113
+ for (k = 0; k < all.length; k++) {
34114
+ el = all[k];
34115
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
34116
+ cs = getComputedStyle(el);
34117
+ var fixedW = parseFloat(cs.width);
34118
+ var rr = el.getBoundingClientRect(), room = limit - padR - rr.left;
34119
+ if (/px$/.test(el.style.width || '') || (cs.display !== 'grid' && fixedW > room + 1 && room > 40 && el.children.length > 0 && overflowing(el, limit) && fixedW >= 600)) {
34120
+ if (!overflowing(el, limit) || room <= 40) continue;
34121
+ put(el, 'zoom', Math.max(0.2, room / rr.width), 'zoom');
34122
+ // The slide keeps its full-screen min-height; shrink it to the scaled
34123
+ // picture so there is no empty screen under it. Never below the picture.
34124
+ var sr = sl.getBoundingClientRect(), er = el.getBoundingClientRect();
34125
+ var need = Math.ceil(er.bottom - sr.top + (parseFloat(getComputedStyle(sl).paddingBottom) || 0));
34126
+ if (need > 80 && need < sr.height) put(sl, 'minHeight', need + 'px', 'slide');
34127
+ }
34128
+ }
34129
+ for (k = 0; k < all.length; k++) {
34130
+ el = all[k];
34131
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
34132
+ cs = getComputedStyle(el);
34133
+ if ((cs.display === 'grid' || cs.display === 'inline-grid') && cs.gridTemplateColumns.split(' ').length > 1 &&
34134
+ (el.scrollWidth > el.clientWidth + 1 || overflowing(el, limit))) {
34135
+ // A cell whose content is absolutely positioned took its height from the
34136
+ // row it shared; keep that height, or its drawing collapses on itself.
34137
+ var keep = [];
34138
+ for (var q = 0; q < el.children.length; q++) {
34139
+ var ch = el.children[q], abs = false, ds = ch.querySelectorAll('*');
34140
+ for (var z = 0; z < ds.length && !abs; z++) abs = getComputedStyle(ds[z]).position === 'absolute';
34141
+ keep.push(abs ? ch.getBoundingClientRect().height : 0);
34142
+ }
34143
+ put(el, 'gridTemplateColumns', 'minmax(0,1fr)', 'reflow');
34144
+ for (q = 0; q < el.children.length; q++) {
34145
+ if (keep[q] > 0 && el.children[q].getBoundingClientRect().height < keep[q] - 1) {
34146
+ put(el.children[q], 'minHeight', Math.round(keep[q]) + 'px', 'keep');
34147
+ }
34148
+ }
34149
+ for (var c = 0; c < el.children.length; c++) {
34150
+ if (getComputedStyle(el.children[c]).gridColumnStart !== 'auto') put(el.children[c], 'gridColumn', 'auto', 'col');
34151
+ }
34152
+ } else if (cs.display.indexOf('flex') > -1 && cs.flexDirection.indexOf('row') === 0 && cs.flexWrap === 'nowrap' &&
34153
+ el.children.length > 1 && overflowing(el.lastElementChild || el, limit)) {
34154
+ put(el, 'flexWrap', 'wrap', 'wrap');
34155
+ }
34156
+ }
34157
+ for (k = 0; k < all.length; k++) {
34158
+ el = all[k];
34159
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
34160
+ if (el.children.length === 0 && overflowing(el, limit) && getComputedStyle(el).whiteSpace.indexOf('nowrap') > -1) {
34161
+ put(el, 'whiteSpace', 'normal', 'text');
34162
+ }
34163
+ }
34164
+ for (k = 0; k < all.length; k++) {
34165
+ el = all[k];
34166
+ if (el.closest('[' + MARK + '="zoom"]')) continue;
34167
+ if (!overflowing(el, limit)) continue;
34168
+ var r = el.getBoundingClientRect(), avail = limit - padR - r.left;
34169
+ if (avail <= 40) continue;
34170
+ put(el, 'zoom', Math.max(0.2, avail / r.width), 'zoom');
34171
+ }
34172
+ }
34173
+ }
34174
+
34175
+ // Obi Wan 73a833f8f833: the narrow (stacked) layout depends on WIDTH only, but iOS
34176
+ // fires resize and visualViewport resize as its toolbars collapse during an ordinary
34177
+ // scroll, changing only the height. Re-running fitNarrow there would revert and
34178
+ // re-measure every slide mid-scroll and could make the page jump. So a narrow re-fit
34179
+ // runs only when the width changed, when leaving deck mode, or on load (content sizes).
34180
+ var narrowW = -1;
34181
+ function apply() {
34182
+ try {
34183
+ if (root.classList.contains('deck-js')) {
34184
+ narrowW = -1;
34185
+ undoNarrow();
34186
+ fitDeck();
34187
+ } else {
34188
+ root.classList.remove('agt-fill');
34189
+ stage.style.zoom = stageZoom0;
34190
+ var nw = root.clientWidth || innerWidth;
34191
+ if (nw === narrowW) return;
34192
+ fitNarrow();
34193
+ narrowW = nw;
34194
+ }
34195
+ } catch (e) {
34196
+ // Never break the deck over a fit problem, but leave a trace (and a hook for
34197
+ // tests) rather than swallowing it.
34198
+ window.__agtDeckFitError = String((e && e.message) || e);
34199
+ }
34200
+ }
34201
+
34202
+ var t = 0;
34203
+ function later() {
34204
+ apply();
34205
+ // iOS reports the new size a beat after resize/orientationchange fires.
34206
+ clearTimeout(t);
34207
+ t = setTimeout(apply, 250);
34208
+ if (window.requestAnimationFrame) requestAnimationFrame(apply);
34209
+ }
34210
+ addEventListener('resize', later);
34211
+ addEventListener('orientationchange', later);
34212
+ // Load can change content sizes (images) at the same width, so it always re-fits.
34213
+ addEventListener('load', function () { narrowW = -1; later(); });
34214
+ if (window.visualViewport) visualViewport.addEventListener('resize', later);
34215
+ // Slide changes: keep fill mode scrolled to the top of the new slide.
34216
+ try { new MutationObserver(function () { if (root.classList.contains('agt-fill')) fitDeck(); })
34217
+ .observe(stage, { subtree: true, attributes: true, attributeFilter: ['class'] }); } catch (e) {}
34218
+ later();
34219
+ })();`;
34220
+ var DECK_PHONE_FIT_SOURCE = FIXER.replace("__AGT_MAX_H__", String(DECK_PHONE_FILL_MAX_HEIGHT_PX)).replace("__AGT_MIN_W__", String(DECK_PHONE_FILL_MIN_WIDTH_PX));
34221
+ var DECK_PHONE_FIT_SCRIPT = '<script id="agt-deck-phone-fit-js">' + DECK_PHONE_FIT_SOURCE + "</script>";
34222
+
34013
34223
  // ../core/dist/integrations/augmented-live/live-hosts.js
34014
34224
  function linkOpenerScript(frameId) {
34015
34225
  return 'function alOpenBar(u){var o=document.getElementById("al-open");if(o)o.parentNode.removeChild(o);var b=document.createElement("div");b.id="al-open";b.setAttribute("role","status");b.appendChild(document.createTextNode("Open link to "));var a=document.createElement("a");a.href=u.href;a.target="_blank";a.rel="noopener noreferrer";a.textContent=u.host;a.addEventListener("click",function(){setTimeout(function(){if(b.parentNode)b.parentNode.removeChild(b);},0);});b.appendChild(a);var x=document.createElement("button");x.type="button";x.setAttribute("aria-label","Dismiss");x.textContent="\xD7";x.addEventListener("click",function(){if(b.parentNode)b.parentNode.removeChild(b);});b.appendChild(x);document.body.appendChild(b);}window.addEventListener("message",function(e){var f=document.getElementById(' + JSON.stringify(frameId) + ');if(!f||e.source!==f.contentWindow||e.origin!=="null")return;var d=e.data;if(!d||d.type!=="al-open"||typeof d.url!=="string")return;var u;try{u=new URL(d.url);}catch(x){return;}if(u.protocol!=="https:"||u.username||u.password)return;var w=window.open(u.href,"_blank");if(w){try{w.opener=null;}catch(x){}}else{alOpenBar(u);}});';
@@ -34072,6 +34282,8 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
34072
34282
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34073
34283
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34074
34284
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
34285
+ var DECK_PRINT_BUTTON_W_PX = 72;
34286
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
34075
34287
 
34076
34288
  // ../core/dist/integrations/augmented-live/codec.js
34077
34289
  var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-3CUCO6BU.js";
72
- import "./chunk-BDXOVKWJ.js";
71
+ } from "./chunk-HI4JD2K2.js";
72
+ import "./chunk-4FLMCHQB.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-XBADGTJP.js";
76
+ import "./chunk-XXIALNTU.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-LQ4GJ264.js.map
150
+ //# sourceMappingURL=persistent-session-S57KHU34.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-3CUCO6BU.js";
4
- import "./chunk-BDXOVKWJ.js";
3
+ } from "./chunk-HI4JD2K2.js";
4
+ import "./chunk-4FLMCHQB.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-XBADGTJP.js";
8
+ import "./chunk-XXIALNTU.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-NN7XEPJM.js.map
807
+ //# sourceMappingURL=responsiveness-probe-TFPKYDPB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-BDXOVKWJ.js";
4
- import "./chunk-XBADGTJP.js";
3
+ } from "./chunk-4FLMCHQB.js";
4
+ import "./chunk-XXIALNTU.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-ESB735FG.js.map
208
+ //# sourceMappingURL=session-auth-dead-EYJAWW46.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1232",
3
+ "version": "0.28.1233",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {