@integrity-labs/agt-cli 0.28.1231 → 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.
- package/dist/bin/agt.js +11 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-KJAY4IUW.js → chunk-4FLMCHQB.js} +2 -2
- package/dist/{chunk-FB7WULTV.js → chunk-DQEUE2X2.js} +2 -2
- package/dist/{chunk-BFQKF46D.js → chunk-HI4JD2K2.js} +17 -3
- package/dist/{chunk-BFQKF46D.js.map → chunk-HI4JD2K2.js.map} +1 -1
- package/dist/{chunk-YQIXA6TX.js → chunk-VGEMWYW3.js} +32 -6
- package/dist/chunk-VGEMWYW3.js.map +1 -0
- package/dist/{chunk-IRIZBER7.js → chunk-XXIALNTU.js} +213 -1
- package/dist/chunk-XXIALNTU.js.map +1 -0
- package/dist/{claude-code-updater-HUMYEBO2.js → claude-code-updater-UTFTOX3B.js} +3 -3
- package/dist/{claude-pair-runtime-5PYUWRH6.js → claude-pair-runtime-DI43DJ4P.js} +3 -3
- package/dist/lib/manager-worker.js +32 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +212 -0
- package/dist/mcp/index.js +212 -0
- package/dist/mcp/origami.js +212 -0
- package/dist/mcp/slack-channel.js +212 -0
- package/dist/mcp/telegram-channel.js +212 -0
- package/dist/{persistent-session-73LJPKT2.js → persistent-session-S57KHU34.js} +4 -4
- package/dist/{responsiveness-probe-QVIGL5BH.js → responsiveness-probe-TFPKYDPB.js} +4 -4
- package/dist/{session-auth-dead-XLWG3MJF.js → session-auth-dead-EYJAWW46.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-IRIZBER7.js.map +0 -1
- package/dist/chunk-YQIXA6TX.js.map +0 -1
- /package/dist/{chunk-KJAY4IUW.js.map → chunk-4FLMCHQB.js.map} +0 -0
- /package/dist/{chunk-FB7WULTV.js.map → chunk-DQEUE2X2.js.map} +0 -0
- /package/dist/{claude-code-updater-HUMYEBO2.js.map → claude-code-updater-UTFTOX3B.js.map} +0 -0
- /package/dist/{claude-pair-runtime-5PYUWRH6.js.map → claude-pair-runtime-DI43DJ4P.js.map} +0 -0
- /package/dist/{persistent-session-73LJPKT2.js.map → persistent-session-S57KHU34.js.map} +0 -0
- /package/dist/{responsiveness-probe-QVIGL5BH.js.map → responsiveness-probe-TFPKYDPB.js.map} +0 -0
- /package/dist/{session-auth-dead-XLWG3MJF.js.map → session-auth-dead-EYJAWW46.js.map} +0 -0
|
@@ -11804,6 +11804,216 @@ var MARKUP_BRIDGE_SCRIPT = `<script>(function(){
|
|
|
11804
11804
|
});
|
|
11805
11805
|
})();</script>`;
|
|
11806
11806
|
|
|
11807
|
+
// ../../packages/core/dist/integrations/augmented-live/deck-phone-fit.js
|
|
11808
|
+
var DECK_PHONE_FILL_MAX_HEIGHT_PX = 500;
|
|
11809
|
+
var DECK_PHONE_FILL_MIN_WIDTH_PX = 560;
|
|
11810
|
+
var FIXER = String.raw`(function () {
|
|
11811
|
+
// ENG-8819: phone fit for Ninja Canvas slide decks, injected by the viewer shell so it
|
|
11812
|
+
// reaches decks that are already published. Acts only on a deck (a #stage holding
|
|
11813
|
+
// .slide elements); every other page is left alone.
|
|
11814
|
+
var stage = document.getElementById('stage');
|
|
11815
|
+
if (!stage || !stage.querySelector('.slide')) return;
|
|
11816
|
+
var root = document.documentElement;
|
|
11817
|
+
var css = document.createElement('style');
|
|
11818
|
+
css.id = 'agt-deck-phone-fit';
|
|
11819
|
+
css.textContent =
|
|
11820
|
+
// The stage is a flex item in deck mode. Without this it shrinks to the viewport
|
|
11821
|
+
// width before it is scaled, so a phone in landscape got a narrow, clipped slide.
|
|
11822
|
+
'html.deck-js #stage{flex-shrink:0}' +
|
|
11823
|
+
// Fill-width mode (short landscape screens): the slide is wider than tall enough
|
|
11824
|
+
// to fit, so let the page scroll vertically instead of letterboxing it.
|
|
11825
|
+
'html.deck-js.agt-fill,html.deck-js.agt-fill body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}' +
|
|
11826
|
+
'html.deck-js.agt-fill body{display:block}' +
|
|
11827
|
+
'html.deck-js.agt-fill #stage{transform:none!important;transform-origin:0 0}' +
|
|
11828
|
+
// Room to scroll the end of the page clear of the viewer chrome fixed along the
|
|
11829
|
+
// bottom edge (the HUD row in landscape; Download and the badge in portrait).
|
|
11830
|
+
'html.deck-js.agt-fill body{padding-bottom:76px}' +
|
|
11831
|
+
'html:not(.deck-js) body{padding-bottom:124px}' +
|
|
11832
|
+
// Portrait reads as a scrolling page, so the rotate prompt is not needed (and sat on
|
|
11833
|
+
// top of the viewer Download button).
|
|
11834
|
+
'html:not(.deck-js) #rotate-hint{display:none!important}';
|
|
11835
|
+
(document.head || root).appendChild(css);
|
|
11836
|
+
|
|
11837
|
+
// Shared with the shell's chrome CSS (deckPhoneChromeCss), so the slide only fills
|
|
11838
|
+
// the width where the shell has also moved Download and the badge out of its way.
|
|
11839
|
+
var PHONE_MAX_H = __AGT_MAX_H__, PHONE_MIN_W = __AGT_MIN_W__;
|
|
11840
|
+
var stageZoom0 = stage.style.zoom;
|
|
11841
|
+
var lastSlide = -1;
|
|
11842
|
+
|
|
11843
|
+
function activeIndex() {
|
|
11844
|
+
var s = stage.querySelectorAll('.slide');
|
|
11845
|
+
for (var i = 0; i < s.length; i++) if (s[i].classList.contains('is-active')) return i;
|
|
11846
|
+
return -1;
|
|
11847
|
+
}
|
|
11848
|
+
|
|
11849
|
+
function fitDeck() {
|
|
11850
|
+
var w = innerWidth, h = innerHeight;
|
|
11851
|
+
// The canvas is whatever the deck declares (1280x720 in the skeleton, but a deck
|
|
11852
|
+
// may set its own), read from layout: transform does not change offsetWidth.
|
|
11853
|
+
stage.style.zoom = stageZoom0;
|
|
11854
|
+
var cw = stage.offsetWidth || 1280, ch = stage.offsetHeight || 720;
|
|
11855
|
+
// Height binds when the window is wider than the canvas. On a phone in landscape
|
|
11856
|
+
// that left a third of the screen empty; fill the width and scroll instead.
|
|
11857
|
+
var fill = w / h > cw / ch && h <= PHONE_MAX_H && w >= PHONE_MIN_W;
|
|
11858
|
+
root.classList.toggle('agt-fill', fill);
|
|
11859
|
+
// Scale to the width the page actually lays out in. innerWidth includes a classic
|
|
11860
|
+
// (non-overlay) scrollbar, and fill mode always scrolls, so on a short desktop
|
|
11861
|
+
// window that would push the slide's right edge under overflow-x:hidden. Read after
|
|
11862
|
+
// the class is on, so the scrollbar it turns on is already taken out.
|
|
11863
|
+
if (fill) stage.style.zoom = (root.clientWidth || w) / cw;
|
|
11864
|
+
var a = activeIndex();
|
|
11865
|
+
if (fill && a !== lastSlide) scrollTo(0, 0);
|
|
11866
|
+
lastSlide = a;
|
|
11867
|
+
}
|
|
11868
|
+
|
|
11869
|
+
// Narrow (portrait) mode stacks the slides as a page, but a slide authored for
|
|
11870
|
+
// 1280px still carries blocks that do not fit 390px, and they were clipped at the
|
|
11871
|
+
// right edge. In order, least destructive first: a multi-column grid becomes one
|
|
11872
|
+
// column, unwrappable text wraps, and only what still overflows (a cover canvas,
|
|
11873
|
+
// a diagram drawn at a fixed size) is scaled down to fit.
|
|
11874
|
+
var MARK = 'data-agt-fit';
|
|
11875
|
+
// Every inline value the narrow pass overwrites is recorded first and put back on
|
|
11876
|
+
// undo. Clearing to '' instead would wipe a deck's own inline layout (a
|
|
11877
|
+
// style="grid-template-columns:..." slide) the first time the phone rotated.
|
|
11878
|
+
var touched = [];
|
|
11879
|
+
function put(el, prop, val, mark) {
|
|
11880
|
+
touched.push([el, prop, el.style[prop]]);
|
|
11881
|
+
el.style[prop] = val;
|
|
11882
|
+
// Never downgrade a 'zoom' mark (Obi Wan 9a6ba37489c2): a zoomed block that is also
|
|
11883
|
+
// a grid child getting 'col' would lose the closest('[data-agt-fit="zoom"]')
|
|
11884
|
+
// exclusion, and passes 3 and 4 could wrap or zoom inside it again (a double scale).
|
|
11885
|
+
if (el.getAttribute(MARK) !== 'zoom') el.setAttribute(MARK, mark);
|
|
11886
|
+
}
|
|
11887
|
+
function undoNarrow() {
|
|
11888
|
+
for (var i = touched.length - 1; i >= 0; i--) {
|
|
11889
|
+
touched[i][0].style[touched[i][1]] = touched[i][2];
|
|
11890
|
+
touched[i][0].removeAttribute(MARK);
|
|
11891
|
+
}
|
|
11892
|
+
touched = [];
|
|
11893
|
+
}
|
|
11894
|
+
function overflowing(el, limit) {
|
|
11895
|
+
var r = el.getBoundingClientRect();
|
|
11896
|
+
return r.width > 0 && r.right > limit + 1;
|
|
11897
|
+
}
|
|
11898
|
+
function fitNarrow() {
|
|
11899
|
+
undoNarrow();
|
|
11900
|
+
var slides = stage.querySelectorAll('.slide');
|
|
11901
|
+
for (var j = 0; j < slides.length; j++) {
|
|
11902
|
+
var sl = slides[j], limit = sl.getBoundingClientRect().right;
|
|
11903
|
+
var all = sl.querySelectorAll('*'), k, el, cs;
|
|
11904
|
+
var padR = parseFloat(getComputedStyle(sl).paddingRight) || 0;
|
|
11905
|
+
// A block drawn at a fixed width wider than the column (a cover canvas) is a
|
|
11906
|
+
// picture, not a layout: scale it whole first, and never reflow inside it.
|
|
11907
|
+
for (k = 0; k < all.length; k++) {
|
|
11908
|
+
el = all[k];
|
|
11909
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11910
|
+
cs = getComputedStyle(el);
|
|
11911
|
+
var fixedW = parseFloat(cs.width);
|
|
11912
|
+
var rr = el.getBoundingClientRect(), room = limit - padR - rr.left;
|
|
11913
|
+
if (/px$/.test(el.style.width || '') || (cs.display !== 'grid' && fixedW > room + 1 && room > 40 && el.children.length > 0 && overflowing(el, limit) && fixedW >= 600)) {
|
|
11914
|
+
if (!overflowing(el, limit) || room <= 40) continue;
|
|
11915
|
+
put(el, 'zoom', Math.max(0.2, room / rr.width), 'zoom');
|
|
11916
|
+
// The slide keeps its full-screen min-height; shrink it to the scaled
|
|
11917
|
+
// picture so there is no empty screen under it. Never below the picture.
|
|
11918
|
+
var sr = sl.getBoundingClientRect(), er = el.getBoundingClientRect();
|
|
11919
|
+
var need = Math.ceil(er.bottom - sr.top + (parseFloat(getComputedStyle(sl).paddingBottom) || 0));
|
|
11920
|
+
if (need > 80 && need < sr.height) put(sl, 'minHeight', need + 'px', 'slide');
|
|
11921
|
+
}
|
|
11922
|
+
}
|
|
11923
|
+
for (k = 0; k < all.length; k++) {
|
|
11924
|
+
el = all[k];
|
|
11925
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11926
|
+
cs = getComputedStyle(el);
|
|
11927
|
+
if ((cs.display === 'grid' || cs.display === 'inline-grid') && cs.gridTemplateColumns.split(' ').length > 1 &&
|
|
11928
|
+
(el.scrollWidth > el.clientWidth + 1 || overflowing(el, limit))) {
|
|
11929
|
+
// A cell whose content is absolutely positioned took its height from the
|
|
11930
|
+
// row it shared; keep that height, or its drawing collapses on itself.
|
|
11931
|
+
var keep = [];
|
|
11932
|
+
for (var q = 0; q < el.children.length; q++) {
|
|
11933
|
+
var ch = el.children[q], abs = false, ds = ch.querySelectorAll('*');
|
|
11934
|
+
for (var z = 0; z < ds.length && !abs; z++) abs = getComputedStyle(ds[z]).position === 'absolute';
|
|
11935
|
+
keep.push(abs ? ch.getBoundingClientRect().height : 0);
|
|
11936
|
+
}
|
|
11937
|
+
put(el, 'gridTemplateColumns', 'minmax(0,1fr)', 'reflow');
|
|
11938
|
+
for (q = 0; q < el.children.length; q++) {
|
|
11939
|
+
if (keep[q] > 0 && el.children[q].getBoundingClientRect().height < keep[q] - 1) {
|
|
11940
|
+
put(el.children[q], 'minHeight', Math.round(keep[q]) + 'px', 'keep');
|
|
11941
|
+
}
|
|
11942
|
+
}
|
|
11943
|
+
for (var c = 0; c < el.children.length; c++) {
|
|
11944
|
+
if (getComputedStyle(el.children[c]).gridColumnStart !== 'auto') put(el.children[c], 'gridColumn', 'auto', 'col');
|
|
11945
|
+
}
|
|
11946
|
+
} else if (cs.display.indexOf('flex') > -1 && cs.flexDirection.indexOf('row') === 0 && cs.flexWrap === 'nowrap' &&
|
|
11947
|
+
el.children.length > 1 && overflowing(el.lastElementChild || el, limit)) {
|
|
11948
|
+
put(el, 'flexWrap', 'wrap', 'wrap');
|
|
11949
|
+
}
|
|
11950
|
+
}
|
|
11951
|
+
for (k = 0; k < all.length; k++) {
|
|
11952
|
+
el = all[k];
|
|
11953
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11954
|
+
if (el.children.length === 0 && overflowing(el, limit) && getComputedStyle(el).whiteSpace.indexOf('nowrap') > -1) {
|
|
11955
|
+
put(el, 'whiteSpace', 'normal', 'text');
|
|
11956
|
+
}
|
|
11957
|
+
}
|
|
11958
|
+
for (k = 0; k < all.length; k++) {
|
|
11959
|
+
el = all[k];
|
|
11960
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11961
|
+
if (!overflowing(el, limit)) continue;
|
|
11962
|
+
var r = el.getBoundingClientRect(), avail = limit - padR - r.left;
|
|
11963
|
+
if (avail <= 40) continue;
|
|
11964
|
+
put(el, 'zoom', Math.max(0.2, avail / r.width), 'zoom');
|
|
11965
|
+
}
|
|
11966
|
+
}
|
|
11967
|
+
}
|
|
11968
|
+
|
|
11969
|
+
// Obi Wan 73a833f8f833: the narrow (stacked) layout depends on WIDTH only, but iOS
|
|
11970
|
+
// fires resize and visualViewport resize as its toolbars collapse during an ordinary
|
|
11971
|
+
// scroll, changing only the height. Re-running fitNarrow there would revert and
|
|
11972
|
+
// re-measure every slide mid-scroll and could make the page jump. So a narrow re-fit
|
|
11973
|
+
// runs only when the width changed, when leaving deck mode, or on load (content sizes).
|
|
11974
|
+
var narrowW = -1;
|
|
11975
|
+
function apply() {
|
|
11976
|
+
try {
|
|
11977
|
+
if (root.classList.contains('deck-js')) {
|
|
11978
|
+
narrowW = -1;
|
|
11979
|
+
undoNarrow();
|
|
11980
|
+
fitDeck();
|
|
11981
|
+
} else {
|
|
11982
|
+
root.classList.remove('agt-fill');
|
|
11983
|
+
stage.style.zoom = stageZoom0;
|
|
11984
|
+
var nw = root.clientWidth || innerWidth;
|
|
11985
|
+
if (nw === narrowW) return;
|
|
11986
|
+
fitNarrow();
|
|
11987
|
+
narrowW = nw;
|
|
11988
|
+
}
|
|
11989
|
+
} catch (e) {
|
|
11990
|
+
// Never break the deck over a fit problem, but leave a trace (and a hook for
|
|
11991
|
+
// tests) rather than swallowing it.
|
|
11992
|
+
window.__agtDeckFitError = String((e && e.message) || e);
|
|
11993
|
+
}
|
|
11994
|
+
}
|
|
11995
|
+
|
|
11996
|
+
var t = 0;
|
|
11997
|
+
function later() {
|
|
11998
|
+
apply();
|
|
11999
|
+
// iOS reports the new size a beat after resize/orientationchange fires.
|
|
12000
|
+
clearTimeout(t);
|
|
12001
|
+
t = setTimeout(apply, 250);
|
|
12002
|
+
if (window.requestAnimationFrame) requestAnimationFrame(apply);
|
|
12003
|
+
}
|
|
12004
|
+
addEventListener('resize', later);
|
|
12005
|
+
addEventListener('orientationchange', later);
|
|
12006
|
+
// Load can change content sizes (images) at the same width, so it always re-fits.
|
|
12007
|
+
addEventListener('load', function () { narrowW = -1; later(); });
|
|
12008
|
+
if (window.visualViewport) visualViewport.addEventListener('resize', later);
|
|
12009
|
+
// Slide changes: keep fill mode scrolled to the top of the new slide.
|
|
12010
|
+
try { new MutationObserver(function () { if (root.classList.contains('agt-fill')) fitDeck(); })
|
|
12011
|
+
.observe(stage, { subtree: true, attributes: true, attributeFilter: ['class'] }); } catch (e) {}
|
|
12012
|
+
later();
|
|
12013
|
+
})();`;
|
|
12014
|
+
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));
|
|
12015
|
+
var DECK_PHONE_FIT_SCRIPT = '<script id="agt-deck-phone-fit-js">' + DECK_PHONE_FIT_SOURCE + "</script>";
|
|
12016
|
+
|
|
11807
12017
|
// ../../packages/core/dist/integrations/augmented-live/publisher.js
|
|
11808
12018
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
11809
12019
|
var presenterChromeCss = `
|
|
@@ -11838,6 +12048,8 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
|
|
|
11838
12048
|
var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
11839
12049
|
var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
11840
12050
|
var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
12051
|
+
var DECK_PRINT_BUTTON_W_PX = 72;
|
|
12052
|
+
var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
|
|
11841
12053
|
|
|
11842
12054
|
// ../../packages/core/dist/integrations/augmented-live/codec.js
|
|
11843
12055
|
var CODEC_VERSION = 1;
|
|
@@ -18034,4 +18246,4 @@ export {
|
|
|
18034
18246
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18035
18247
|
shouldMintReplacementKey
|
|
18036
18248
|
};
|
|
18037
|
-
//# sourceMappingURL=chunk-
|
|
18249
|
+
//# sourceMappingURL=chunk-XXIALNTU.js.map
|