@integrity-labs/agt-cli 0.28.1232 → 0.28.1234
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 +6 -6
- package/dist/{chunk-3CUCO6BU.js → chunk-74FVXAHG.js} +3 -3
- package/dist/{chunk-BDXOVKWJ.js → chunk-AZ2QBMCL.js} +2 -2
- package/dist/{chunk-XBADGTJP.js → chunk-NPW4S55O.js} +295 -3
- package/dist/chunk-NPW4S55O.js.map +1 -0
- package/dist/{chunk-QCBL7EBD.js → chunk-PV2LPKJ2.js} +2 -2
- package/dist/{chunk-LS27F6QF.js → chunk-UWJTR4AS.js} +5 -5
- package/dist/{claude-code-updater-R7QSZDGD.js → claude-code-updater-6GP4LY3Y.js} +3 -3
- package/dist/{claude-pair-runtime-BH7XN36C.js → claude-pair-runtime-2QA23TMP.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +248 -2
- package/dist/mcp/index.js +248 -2
- package/dist/mcp/origami.js +248 -2
- package/dist/mcp/slack-channel.js +248 -2
- package/dist/mcp/telegram-channel.js +248 -2
- package/dist/{persistent-session-LQ4GJ264.js → persistent-session-YS5LY7YD.js} +4 -4
- package/dist/{responsiveness-probe-NN7XEPJM.js → responsiveness-probe-C3SSBQCL.js} +4 -4
- package/dist/{session-auth-dead-ESB735FG.js → session-auth-dead-3GT7MM6J.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-XBADGTJP.js.map +0 -1
- /package/dist/{chunk-3CUCO6BU.js.map → chunk-74FVXAHG.js.map} +0 -0
- /package/dist/{chunk-BDXOVKWJ.js.map → chunk-AZ2QBMCL.js.map} +0 -0
- /package/dist/{chunk-QCBL7EBD.js.map → chunk-PV2LPKJ2.js.map} +0 -0
- /package/dist/{chunk-LS27F6QF.js.map → chunk-UWJTR4AS.js.map} +0 -0
- /package/dist/{claude-code-updater-R7QSZDGD.js.map → claude-code-updater-6GP4LY3Y.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BH7XN36C.js.map → claude-pair-runtime-2QA23TMP.js.map} +0 -0
- /package/dist/{persistent-session-LQ4GJ264.js.map → persistent-session-YS5LY7YD.js.map} +0 -0
- /package/dist/{responsiveness-probe-NN7XEPJM.js.map → responsiveness-probe-C3SSBQCL.js.map} +0 -0
- /package/dist/{session-auth-dead-ESB735FG.js.map → session-auth-dead-3GT7MM6J.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-UWJTR4AS.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-74FVXAHG.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-AZ2QBMCL.js";
|
|
54
54
|
import "../chunk-HYQ7VOC3.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-NPW4S55O.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1234" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1234" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AZ2QBMCL.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-
|
|
54
|
+
} from "./chunk-NPW4S55O.js";
|
|
55
55
|
import {
|
|
56
56
|
CLAUDE_CONFIG_DIR_ENV,
|
|
57
57
|
approveApiKeyInClaudeConfig,
|
|
@@ -6196,4 +6196,4 @@ export {
|
|
|
6196
6196
|
stopAllSessionsAndWait,
|
|
6197
6197
|
getProjectDir
|
|
6198
6198
|
};
|
|
6199
|
-
//# sourceMappingURL=chunk-
|
|
6199
|
+
//# sourceMappingURL=chunk-74FVXAHG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NPW4S55O.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-
|
|
247
|
+
//# sourceMappingURL=chunk-AZ2QBMCL.js.map
|
|
@@ -7006,6 +7006,25 @@ var FLAG_REGISTRY = [
|
|
|
7006
7006
|
flagType: "boolean",
|
|
7007
7007
|
defaultValue: false
|
|
7008
7008
|
},
|
|
7009
|
+
{
|
|
7010
|
+
key: "kanban-waiting-person-notify",
|
|
7011
|
+
description: `Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent PARKS a kanban card on them - "I still own this and cannot finish until you act" (ENG-8291 / ENG-11974). This is a DIFFERENT ask from human-task-assignment-notify, which covers "this is yours now", where ownership MOVES to the person. Until ENG-11974 one flag gated both, because the park path composes the assignment path's delivery; an org that silenced assignment pings therefore also lost every blocked-on-you message, which is the failure my-waiting.ts measured at a PR sitting 25.5h on a single merge tap. Off = the card is parked silently (it still appears in the recipient's "Awaiting you" queue on My Tasks). Note kanban-waiting-status is a separate gate and governs whether a park may be EMITTED at all; this one governs whether the human is TOLD.`,
|
|
7012
|
+
flagType: "boolean",
|
|
7013
|
+
// Declared safe value is `false`, matching its assignment sibling: fail-closed
|
|
7014
|
+
// is the right direction for a rail that messages a human.
|
|
7015
|
+
//
|
|
7016
|
+
// This default is NOT the deploy-time behaviour, and reading it as such is the
|
|
7017
|
+
// trap. The accompanying migration MIRRORS human-task-assignment-notify onto
|
|
7018
|
+
// this key - whatever that flag's central value is, plus every one of its
|
|
7019
|
+
// overrides at every grain - so no org's effective behaviour changes when
|
|
7020
|
+
// ENG-11974 ships. It deliberately does NOT seed a literal `true`: on a stage
|
|
7021
|
+
// where the old flag has no row, the old gate resolves to `false` and nobody
|
|
7022
|
+
// is being messaged, so a literal `true` would ARM a rail that DMs and emails
|
|
7023
|
+
// real humans on a fleet that never had one. A registry default
|
|
7024
|
+
// renders identically to a measurement - to learn whether this is on for an
|
|
7025
|
+
// org, read feature_flags.value and feature_flag_overrides, never this line.
|
|
7026
|
+
defaultValue: false
|
|
7027
|
+
},
|
|
7009
7028
|
{
|
|
7010
7029
|
key: "resume-reconciler",
|
|
7011
7030
|
description: "Health-gated safe auto-resume for circuit-breaker pauses (ENG-6383, epic ENG-6333). When on, the manager clears a trip only when the dependency has genuinely recovered (status active + MCP present + connectivity ok \u2265 hysteresis), replacing the blind ENG-6088 quiet-timer; when off, the blind timer still governs. Boolean gate; ships dark.",
|
|
@@ -9616,6 +9635,16 @@ var integration_metadata_v1_default = {
|
|
|
9616
9635
|
enum: ["basic_username", "basic_pair", "raw"],
|
|
9617
9636
|
description: "How the credential is encoded into Authorization (ENG-10524). `basic_username` sends it as the HTTP Basic username with an empty password (`Authorization: Basic base64(<credential>:)`), Sportsyear's API-key form. `basic_pair` splits the credential on its first `:` and sends `Authorization: Basic base64(<username>:<password>)`, Projectworks' API-account form (CS-1980). `raw` sends the credential itself as the header value with no scheme word (`Authorization: <credential>`), AppsFlyer OneLink's form (CS-1918). Omit for `<auth_scheme> <credential>`. Must not be combined with `auth_scheme`."
|
|
9618
9637
|
},
|
|
9638
|
+
token_exchange: {
|
|
9639
|
+
type: "object",
|
|
9640
|
+
description: "OAuth 2.0 client-credentials exchange (CS-1958). The stored credential is `<client id>:<client secret>`, exchanged at token_url for a short-lived bearer that the broker holds and sends as Bearer.",
|
|
9641
|
+
additionalProperties: false,
|
|
9642
|
+
required: ["token_url", "scope"],
|
|
9643
|
+
properties: {
|
|
9644
|
+
token_url: { type: "string", pattern: "^https://[^\\s]+$" },
|
|
9645
|
+
scope: { type: "string", minLength: 1 }
|
|
9646
|
+
}
|
|
9647
|
+
},
|
|
9619
9648
|
runtime_scopes: {
|
|
9620
9649
|
type: "object",
|
|
9621
9650
|
description: "Per-runtime-scope support map. Each slot is either null (the integration does not support installs at this scope) or an object describing how token resolution and auth work for that scope.",
|
|
@@ -9676,8 +9705,13 @@ var integration_metadata_v1_default = {
|
|
|
9676
9705
|
anyOf: [{ required: ["base_url"] }, { required: ["base_url_template"] }]
|
|
9677
9706
|
},
|
|
9678
9707
|
not: {
|
|
9679
|
-
description: "auth_scheme and auth_encoding are mutually exclusive (ENG-10524). The templater refuses the combination on every call, so catalog validation refuses it first.",
|
|
9680
|
-
|
|
9708
|
+
description: "auth_scheme and auth_encoding are mutually exclusive (ENG-10524). The templater refuses the combination on every call, so catalog validation refuses it first. token_exchange excludes both (CS-1958): the exchanged token must go out as Bearer, and either field would send it in a form the vendor rejects. It also excludes config_arg_defaults: those resolve the token before the approval gate, and an exchange there would post the secret for a call that may then be denied.",
|
|
9709
|
+
anyOf: [
|
|
9710
|
+
{ required: ["auth_scheme", "auth_encoding"] },
|
|
9711
|
+
{ required: ["token_exchange", "auth_scheme"] },
|
|
9712
|
+
{ required: ["token_exchange", "auth_encoding"] },
|
|
9713
|
+
{ required: ["token_exchange", "config_arg_defaults"] }
|
|
9714
|
+
]
|
|
9681
9715
|
},
|
|
9682
9716
|
$defs: {
|
|
9683
9717
|
scopeConfig: {
|
|
@@ -11804,6 +11838,216 @@ var MARKUP_BRIDGE_SCRIPT = `<script>(function(){
|
|
|
11804
11838
|
});
|
|
11805
11839
|
})();</script>`;
|
|
11806
11840
|
|
|
11841
|
+
// ../../packages/core/dist/integrations/augmented-live/deck-phone-fit.js
|
|
11842
|
+
var DECK_PHONE_FILL_MAX_HEIGHT_PX = 500;
|
|
11843
|
+
var DECK_PHONE_FILL_MIN_WIDTH_PX = 560;
|
|
11844
|
+
var FIXER = String.raw`(function () {
|
|
11845
|
+
// ENG-8819: phone fit for Ninja Canvas slide decks, injected by the viewer shell so it
|
|
11846
|
+
// reaches decks that are already published. Acts only on a deck (a #stage holding
|
|
11847
|
+
// .slide elements); every other page is left alone.
|
|
11848
|
+
var stage = document.getElementById('stage');
|
|
11849
|
+
if (!stage || !stage.querySelector('.slide')) return;
|
|
11850
|
+
var root = document.documentElement;
|
|
11851
|
+
var css = document.createElement('style');
|
|
11852
|
+
css.id = 'agt-deck-phone-fit';
|
|
11853
|
+
css.textContent =
|
|
11854
|
+
// The stage is a flex item in deck mode. Without this it shrinks to the viewport
|
|
11855
|
+
// width before it is scaled, so a phone in landscape got a narrow, clipped slide.
|
|
11856
|
+
'html.deck-js #stage{flex-shrink:0}' +
|
|
11857
|
+
// Fill-width mode (short landscape screens): the slide is wider than tall enough
|
|
11858
|
+
// to fit, so let the page scroll vertically instead of letterboxing it.
|
|
11859
|
+
'html.deck-js.agt-fill,html.deck-js.agt-fill body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}' +
|
|
11860
|
+
'html.deck-js.agt-fill body{display:block}' +
|
|
11861
|
+
'html.deck-js.agt-fill #stage{transform:none!important;transform-origin:0 0}' +
|
|
11862
|
+
// Room to scroll the end of the page clear of the viewer chrome fixed along the
|
|
11863
|
+
// bottom edge (the HUD row in landscape; Download and the badge in portrait).
|
|
11864
|
+
'html.deck-js.agt-fill body{padding-bottom:76px}' +
|
|
11865
|
+
'html:not(.deck-js) body{padding-bottom:124px}' +
|
|
11866
|
+
// Portrait reads as a scrolling page, so the rotate prompt is not needed (and sat on
|
|
11867
|
+
// top of the viewer Download button).
|
|
11868
|
+
'html:not(.deck-js) #rotate-hint{display:none!important}';
|
|
11869
|
+
(document.head || root).appendChild(css);
|
|
11870
|
+
|
|
11871
|
+
// Shared with the shell's chrome CSS (deckPhoneChromeCss), so the slide only fills
|
|
11872
|
+
// the width where the shell has also moved Download and the badge out of its way.
|
|
11873
|
+
var PHONE_MAX_H = __AGT_MAX_H__, PHONE_MIN_W = __AGT_MIN_W__;
|
|
11874
|
+
var stageZoom0 = stage.style.zoom;
|
|
11875
|
+
var lastSlide = -1;
|
|
11876
|
+
|
|
11877
|
+
function activeIndex() {
|
|
11878
|
+
var s = stage.querySelectorAll('.slide');
|
|
11879
|
+
for (var i = 0; i < s.length; i++) if (s[i].classList.contains('is-active')) return i;
|
|
11880
|
+
return -1;
|
|
11881
|
+
}
|
|
11882
|
+
|
|
11883
|
+
function fitDeck() {
|
|
11884
|
+
var w = innerWidth, h = innerHeight;
|
|
11885
|
+
// The canvas is whatever the deck declares (1280x720 in the skeleton, but a deck
|
|
11886
|
+
// may set its own), read from layout: transform does not change offsetWidth.
|
|
11887
|
+
stage.style.zoom = stageZoom0;
|
|
11888
|
+
var cw = stage.offsetWidth || 1280, ch = stage.offsetHeight || 720;
|
|
11889
|
+
// Height binds when the window is wider than the canvas. On a phone in landscape
|
|
11890
|
+
// that left a third of the screen empty; fill the width and scroll instead.
|
|
11891
|
+
var fill = w / h > cw / ch && h <= PHONE_MAX_H && w >= PHONE_MIN_W;
|
|
11892
|
+
root.classList.toggle('agt-fill', fill);
|
|
11893
|
+
// Scale to the width the page actually lays out in. innerWidth includes a classic
|
|
11894
|
+
// (non-overlay) scrollbar, and fill mode always scrolls, so on a short desktop
|
|
11895
|
+
// window that would push the slide's right edge under overflow-x:hidden. Read after
|
|
11896
|
+
// the class is on, so the scrollbar it turns on is already taken out.
|
|
11897
|
+
if (fill) stage.style.zoom = (root.clientWidth || w) / cw;
|
|
11898
|
+
var a = activeIndex();
|
|
11899
|
+
if (fill && a !== lastSlide) scrollTo(0, 0);
|
|
11900
|
+
lastSlide = a;
|
|
11901
|
+
}
|
|
11902
|
+
|
|
11903
|
+
// Narrow (portrait) mode stacks the slides as a page, but a slide authored for
|
|
11904
|
+
// 1280px still carries blocks that do not fit 390px, and they were clipped at the
|
|
11905
|
+
// right edge. In order, least destructive first: a multi-column grid becomes one
|
|
11906
|
+
// column, unwrappable text wraps, and only what still overflows (a cover canvas,
|
|
11907
|
+
// a diagram drawn at a fixed size) is scaled down to fit.
|
|
11908
|
+
var MARK = 'data-agt-fit';
|
|
11909
|
+
// Every inline value the narrow pass overwrites is recorded first and put back on
|
|
11910
|
+
// undo. Clearing to '' instead would wipe a deck's own inline layout (a
|
|
11911
|
+
// style="grid-template-columns:..." slide) the first time the phone rotated.
|
|
11912
|
+
var touched = [];
|
|
11913
|
+
function put(el, prop, val, mark) {
|
|
11914
|
+
touched.push([el, prop, el.style[prop]]);
|
|
11915
|
+
el.style[prop] = val;
|
|
11916
|
+
// Never downgrade a 'zoom' mark (Obi Wan 9a6ba37489c2): a zoomed block that is also
|
|
11917
|
+
// a grid child getting 'col' would lose the closest('[data-agt-fit="zoom"]')
|
|
11918
|
+
// exclusion, and passes 3 and 4 could wrap or zoom inside it again (a double scale).
|
|
11919
|
+
if (el.getAttribute(MARK) !== 'zoom') el.setAttribute(MARK, mark);
|
|
11920
|
+
}
|
|
11921
|
+
function undoNarrow() {
|
|
11922
|
+
for (var i = touched.length - 1; i >= 0; i--) {
|
|
11923
|
+
touched[i][0].style[touched[i][1]] = touched[i][2];
|
|
11924
|
+
touched[i][0].removeAttribute(MARK);
|
|
11925
|
+
}
|
|
11926
|
+
touched = [];
|
|
11927
|
+
}
|
|
11928
|
+
function overflowing(el, limit) {
|
|
11929
|
+
var r = el.getBoundingClientRect();
|
|
11930
|
+
return r.width > 0 && r.right > limit + 1;
|
|
11931
|
+
}
|
|
11932
|
+
function fitNarrow() {
|
|
11933
|
+
undoNarrow();
|
|
11934
|
+
var slides = stage.querySelectorAll('.slide');
|
|
11935
|
+
for (var j = 0; j < slides.length; j++) {
|
|
11936
|
+
var sl = slides[j], limit = sl.getBoundingClientRect().right;
|
|
11937
|
+
var all = sl.querySelectorAll('*'), k, el, cs;
|
|
11938
|
+
var padR = parseFloat(getComputedStyle(sl).paddingRight) || 0;
|
|
11939
|
+
// A block drawn at a fixed width wider than the column (a cover canvas) is a
|
|
11940
|
+
// picture, not a layout: scale it whole first, and never reflow inside it.
|
|
11941
|
+
for (k = 0; k < all.length; k++) {
|
|
11942
|
+
el = all[k];
|
|
11943
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11944
|
+
cs = getComputedStyle(el);
|
|
11945
|
+
var fixedW = parseFloat(cs.width);
|
|
11946
|
+
var rr = el.getBoundingClientRect(), room = limit - padR - rr.left;
|
|
11947
|
+
if (/px$/.test(el.style.width || '') || (cs.display !== 'grid' && fixedW > room + 1 && room > 40 && el.children.length > 0 && overflowing(el, limit) && fixedW >= 600)) {
|
|
11948
|
+
if (!overflowing(el, limit) || room <= 40) continue;
|
|
11949
|
+
put(el, 'zoom', Math.max(0.2, room / rr.width), 'zoom');
|
|
11950
|
+
// The slide keeps its full-screen min-height; shrink it to the scaled
|
|
11951
|
+
// picture so there is no empty screen under it. Never below the picture.
|
|
11952
|
+
var sr = sl.getBoundingClientRect(), er = el.getBoundingClientRect();
|
|
11953
|
+
var need = Math.ceil(er.bottom - sr.top + (parseFloat(getComputedStyle(sl).paddingBottom) || 0));
|
|
11954
|
+
if (need > 80 && need < sr.height) put(sl, 'minHeight', need + 'px', 'slide');
|
|
11955
|
+
}
|
|
11956
|
+
}
|
|
11957
|
+
for (k = 0; k < all.length; k++) {
|
|
11958
|
+
el = all[k];
|
|
11959
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11960
|
+
cs = getComputedStyle(el);
|
|
11961
|
+
if ((cs.display === 'grid' || cs.display === 'inline-grid') && cs.gridTemplateColumns.split(' ').length > 1 &&
|
|
11962
|
+
(el.scrollWidth > el.clientWidth + 1 || overflowing(el, limit))) {
|
|
11963
|
+
// A cell whose content is absolutely positioned took its height from the
|
|
11964
|
+
// row it shared; keep that height, or its drawing collapses on itself.
|
|
11965
|
+
var keep = [];
|
|
11966
|
+
for (var q = 0; q < el.children.length; q++) {
|
|
11967
|
+
var ch = el.children[q], abs = false, ds = ch.querySelectorAll('*');
|
|
11968
|
+
for (var z = 0; z < ds.length && !abs; z++) abs = getComputedStyle(ds[z]).position === 'absolute';
|
|
11969
|
+
keep.push(abs ? ch.getBoundingClientRect().height : 0);
|
|
11970
|
+
}
|
|
11971
|
+
put(el, 'gridTemplateColumns', 'minmax(0,1fr)', 'reflow');
|
|
11972
|
+
for (q = 0; q < el.children.length; q++) {
|
|
11973
|
+
if (keep[q] > 0 && el.children[q].getBoundingClientRect().height < keep[q] - 1) {
|
|
11974
|
+
put(el.children[q], 'minHeight', Math.round(keep[q]) + 'px', 'keep');
|
|
11975
|
+
}
|
|
11976
|
+
}
|
|
11977
|
+
for (var c = 0; c < el.children.length; c++) {
|
|
11978
|
+
if (getComputedStyle(el.children[c]).gridColumnStart !== 'auto') put(el.children[c], 'gridColumn', 'auto', 'col');
|
|
11979
|
+
}
|
|
11980
|
+
} else if (cs.display.indexOf('flex') > -1 && cs.flexDirection.indexOf('row') === 0 && cs.flexWrap === 'nowrap' &&
|
|
11981
|
+
el.children.length > 1 && overflowing(el.lastElementChild || el, limit)) {
|
|
11982
|
+
put(el, 'flexWrap', 'wrap', 'wrap');
|
|
11983
|
+
}
|
|
11984
|
+
}
|
|
11985
|
+
for (k = 0; k < all.length; k++) {
|
|
11986
|
+
el = all[k];
|
|
11987
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11988
|
+
if (el.children.length === 0 && overflowing(el, limit) && getComputedStyle(el).whiteSpace.indexOf('nowrap') > -1) {
|
|
11989
|
+
put(el, 'whiteSpace', 'normal', 'text');
|
|
11990
|
+
}
|
|
11991
|
+
}
|
|
11992
|
+
for (k = 0; k < all.length; k++) {
|
|
11993
|
+
el = all[k];
|
|
11994
|
+
if (el.closest('[' + MARK + '="zoom"]')) continue;
|
|
11995
|
+
if (!overflowing(el, limit)) continue;
|
|
11996
|
+
var r = el.getBoundingClientRect(), avail = limit - padR - r.left;
|
|
11997
|
+
if (avail <= 40) continue;
|
|
11998
|
+
put(el, 'zoom', Math.max(0.2, avail / r.width), 'zoom');
|
|
11999
|
+
}
|
|
12000
|
+
}
|
|
12001
|
+
}
|
|
12002
|
+
|
|
12003
|
+
// Obi Wan 73a833f8f833: the narrow (stacked) layout depends on WIDTH only, but iOS
|
|
12004
|
+
// fires resize and visualViewport resize as its toolbars collapse during an ordinary
|
|
12005
|
+
// scroll, changing only the height. Re-running fitNarrow there would revert and
|
|
12006
|
+
// re-measure every slide mid-scroll and could make the page jump. So a narrow re-fit
|
|
12007
|
+
// runs only when the width changed, when leaving deck mode, or on load (content sizes).
|
|
12008
|
+
var narrowW = -1;
|
|
12009
|
+
function apply() {
|
|
12010
|
+
try {
|
|
12011
|
+
if (root.classList.contains('deck-js')) {
|
|
12012
|
+
narrowW = -1;
|
|
12013
|
+
undoNarrow();
|
|
12014
|
+
fitDeck();
|
|
12015
|
+
} else {
|
|
12016
|
+
root.classList.remove('agt-fill');
|
|
12017
|
+
stage.style.zoom = stageZoom0;
|
|
12018
|
+
var nw = root.clientWidth || innerWidth;
|
|
12019
|
+
if (nw === narrowW) return;
|
|
12020
|
+
fitNarrow();
|
|
12021
|
+
narrowW = nw;
|
|
12022
|
+
}
|
|
12023
|
+
} catch (e) {
|
|
12024
|
+
// Never break the deck over a fit problem, but leave a trace (and a hook for
|
|
12025
|
+
// tests) rather than swallowing it.
|
|
12026
|
+
window.__agtDeckFitError = String((e && e.message) || e);
|
|
12027
|
+
}
|
|
12028
|
+
}
|
|
12029
|
+
|
|
12030
|
+
var t = 0;
|
|
12031
|
+
function later() {
|
|
12032
|
+
apply();
|
|
12033
|
+
// iOS reports the new size a beat after resize/orientationchange fires.
|
|
12034
|
+
clearTimeout(t);
|
|
12035
|
+
t = setTimeout(apply, 250);
|
|
12036
|
+
if (window.requestAnimationFrame) requestAnimationFrame(apply);
|
|
12037
|
+
}
|
|
12038
|
+
addEventListener('resize', later);
|
|
12039
|
+
addEventListener('orientationchange', later);
|
|
12040
|
+
// Load can change content sizes (images) at the same width, so it always re-fits.
|
|
12041
|
+
addEventListener('load', function () { narrowW = -1; later(); });
|
|
12042
|
+
if (window.visualViewport) visualViewport.addEventListener('resize', later);
|
|
12043
|
+
// Slide changes: keep fill mode scrolled to the top of the new slide.
|
|
12044
|
+
try { new MutationObserver(function () { if (root.classList.contains('agt-fill')) fitDeck(); })
|
|
12045
|
+
.observe(stage, { subtree: true, attributes: true, attributeFilter: ['class'] }); } catch (e) {}
|
|
12046
|
+
later();
|
|
12047
|
+
})();`;
|
|
12048
|
+
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));
|
|
12049
|
+
var DECK_PHONE_FIT_SCRIPT = '<script id="agt-deck-phone-fit-js">' + DECK_PHONE_FIT_SOURCE + "</script>";
|
|
12050
|
+
|
|
11807
12051
|
// ../../packages/core/dist/integrations/augmented-live/publisher.js
|
|
11808
12052
|
var PRESENTER_CHROME_SELECTORS = "#al-download, #al-vis, .al-launcher, .al-stats-btn, .al-edit-btn";
|
|
11809
12053
|
var presenterChromeCss = `
|
|
@@ -11838,6 +12082,8 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
|
|
|
11838
12082
|
var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
11839
12083
|
var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
11840
12084
|
var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
|
|
12085
|
+
var DECK_PRINT_BUTTON_W_PX = 72;
|
|
12086
|
+
var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
|
|
11841
12087
|
|
|
11842
12088
|
// ../../packages/core/dist/integrations/augmented-live/codec.js
|
|
11843
12089
|
var CODEC_VERSION = 1;
|
|
@@ -13571,6 +13817,50 @@ async function probeProjectworks(creds, fetchImpl) {
|
|
|
13571
13817
|
};
|
|
13572
13818
|
}
|
|
13573
13819
|
}
|
|
13820
|
+
var CULTUREAMP_TOKEN_URL = "https://api.cultureamp.com/v1/oauth2/token";
|
|
13821
|
+
var CULTUREAMP_TOKEN_SCOPE = "target-entity:8ed17dce-9eca-4383-a9e1-54f82c362b6d:employees-read,employee-demographics-read,performance-evaluations-read";
|
|
13822
|
+
async function probeCultureAmp(creds, fetchImpl) {
|
|
13823
|
+
const pair = creds.api_key ?? creds.access_token;
|
|
13824
|
+
if (!pair)
|
|
13825
|
+
return { status: "down", message: "No Culture Amp credential present" };
|
|
13826
|
+
const raw = String(pair);
|
|
13827
|
+
const colon = raw.indexOf(":");
|
|
13828
|
+
if (colon <= 0 || colon === raw.length - 1) {
|
|
13829
|
+
return { status: "down", message: "Culture Amp credential needs both the client ID and the client secret" };
|
|
13830
|
+
}
|
|
13831
|
+
try {
|
|
13832
|
+
const res = await timedFetch(fetchImpl, CULTUREAMP_TOKEN_URL, {
|
|
13833
|
+
method: "POST",
|
|
13834
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded", Accept: "application/json" },
|
|
13835
|
+
body: new URLSearchParams({
|
|
13836
|
+
grant_type: "client_credentials",
|
|
13837
|
+
scope: CULTUREAMP_TOKEN_SCOPE,
|
|
13838
|
+
client_id: raw.slice(0, colon),
|
|
13839
|
+
client_secret: raw.slice(colon + 1)
|
|
13840
|
+
}).toString(),
|
|
13841
|
+
// As in the broker's exchange: a redirect would carry the secret to wherever it points.
|
|
13842
|
+
redirect: "error"
|
|
13843
|
+
});
|
|
13844
|
+
if (!res.ok) {
|
|
13845
|
+
const message = res.status === 400 || res.status === 401 ? `Culture Amp refused the credential (${res.status}) - check the client ID and secret, and that it has the three read permissions` : res.status === 429 ? rateLimitMessage("Culture Amp", res.status) : `Culture Amp token endpoint returned ${res.status}`;
|
|
13846
|
+
return res.status === 400 ? { status: "down", cause: "auth_rejected", message } : { status: statusForHttp(res.status), cause: causeForHttp(res.status), message };
|
|
13847
|
+
}
|
|
13848
|
+
let body = null;
|
|
13849
|
+
try {
|
|
13850
|
+
body = await res.json();
|
|
13851
|
+
} catch {
|
|
13852
|
+
body = null;
|
|
13853
|
+
}
|
|
13854
|
+
const token = body?.access_token;
|
|
13855
|
+
if (typeof token !== "string" || token === "") {
|
|
13856
|
+
return { status: "down", message: "Culture Amp returned 200 without a token - not a Culture Amp API response" };
|
|
13857
|
+
}
|
|
13858
|
+
return { status: "ok", message: "Connected to Culture Amp" };
|
|
13859
|
+
} catch (err) {
|
|
13860
|
+
const outcome = networkOutcome(err, raw);
|
|
13861
|
+
return outcome.message === void 0 ? outcome : { ...outcome, message: redactSecret(outcome.message, raw.slice(colon + 1)) };
|
|
13862
|
+
}
|
|
13863
|
+
}
|
|
13574
13864
|
async function probeStorrito(creds, fetchImpl, config) {
|
|
13575
13865
|
const token = creds.api_key ?? creds.access_token;
|
|
13576
13866
|
if (!token)
|
|
@@ -13794,6 +14084,8 @@ async function probeHttpProvider(definitionId, credentials, fetchImpl = fetch, c
|
|
|
13794
14084
|
return probeMitti(credentials, fetchImpl);
|
|
13795
14085
|
case "projectworks":
|
|
13796
14086
|
return probeProjectworks(credentials, fetchImpl);
|
|
14087
|
+
case "cultureamp":
|
|
14088
|
+
return probeCultureAmp(credentials, fetchImpl);
|
|
13797
14089
|
case "omnisend":
|
|
13798
14090
|
return probeOmnisend(credentials, fetchImpl);
|
|
13799
14091
|
case "flutterflow":
|
|
@@ -18034,4 +18326,4 @@ export {
|
|
|
18034
18326
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18035
18327
|
shouldMintReplacementKey
|
|
18036
18328
|
};
|
|
18037
|
-
//# sourceMappingURL=chunk-
|
|
18329
|
+
//# sourceMappingURL=chunk-NPW4S55O.js.map
|