@integrity-labs/agt-cli 0.28.1015 → 0.28.1017
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 +5 -5
- package/dist/{chunk-MHDNKKEO.js → chunk-CVQDMHOP.js} +10 -2
- package/dist/{chunk-MHDNKKEO.js.map → chunk-CVQDMHOP.js.map} +1 -1
- package/dist/{chunk-GHHDFHKE.js → chunk-HIDB6U3D.js} +1558 -1372
- package/dist/chunk-HIDB6U3D.js.map +1 -0
- package/dist/{chunk-RJ3SI5JG.js → chunk-X7SX25N6.js} +20 -2
- package/dist/chunk-X7SX25N6.js.map +1 -0
- package/dist/{claude-pair-runtime-GSPFYCG4.js → claude-pair-runtime-JQRJXNSL.js} +2 -2
- package/dist/lib/manager-worker.js +178 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/telegram-channel.js +194 -3
- package/dist/{persistent-session-YP2UTQGA.js → persistent-session-UZBB7EOS.js} +3 -3
- package/dist/{responsiveness-probe-YTFWHUTQ.js → responsiveness-probe-KLOUFBM5.js} +3 -3
- package/dist/{session-auth-dead-TX4YQUTJ.js → session-auth-dead-JJUKS75B.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-GHHDFHKE.js.map +0 -1
- package/dist/chunk-RJ3SI5JG.js.map +0 -1
- /package/dist/{claude-pair-runtime-GSPFYCG4.js.map → claude-pair-runtime-JQRJXNSL.js.map} +0 -0
- /package/dist/{persistent-session-YP2UTQGA.js.map → persistent-session-UZBB7EOS.js.map} +0 -0
- /package/dist/{responsiveness-probe-YTFWHUTQ.js.map → responsiveness-probe-KLOUFBM5.js.map} +0 -0
- /package/dist/{session-auth-dead-TX4YQUTJ.js.map → session-auth-dead-JJUKS75B.js.map} +0 -0
|
@@ -3472,7 +3472,7 @@ function isRespawnExemptEnvVar(name) {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
3474
|
// ../../packages/core/dist/types/channel.js
|
|
3475
|
-
var SENDER_POLICY_ENFORCED_CHANNELS = ["slack", "msteams"];
|
|
3475
|
+
var SENDER_POLICY_ENFORCED_CHANNELS = ["slack", "msteams", "telegram"];
|
|
3476
3476
|
function senderPolicyIsEnforcedOn(channelId) {
|
|
3477
3477
|
return SENDER_POLICY_ENFORCED_CHANNELS.includes(channelId);
|
|
3478
3478
|
}
|
|
@@ -4385,6 +4385,9 @@ var AZURE_PROVISIONING_SCOPES = [
|
|
|
4385
4385
|
function teamOnlyReason(allowlist) {
|
|
4386
4386
|
return allowlist && allowlist.length > 0 ? "mode_team_only" : "mode_team_only_no_principals";
|
|
4387
4387
|
}
|
|
4388
|
+
function managerOnlyReason(principalId) {
|
|
4389
|
+
return principalId ? "mode_manager_only" : "mode_manager_only_no_principals";
|
|
4390
|
+
}
|
|
4388
4391
|
function classifySlackPolicyBlock(evt, policy) {
|
|
4389
4392
|
if (policy.internalOnly && (!policy.homeTeamId || evt.team !== policy.homeTeamId)) {
|
|
4390
4393
|
return "internal_only";
|
|
@@ -4402,6 +4405,20 @@ function classifySlackPolicyBlock(evt, policy) {
|
|
|
4402
4405
|
return "internal_only";
|
|
4403
4406
|
}
|
|
4404
4407
|
}
|
|
4408
|
+
function classifyTelegramPolicyBlock(policy) {
|
|
4409
|
+
switch (policy.mode) {
|
|
4410
|
+
case "manager_only":
|
|
4411
|
+
return managerOnlyReason(policy.principalTelegramUserId);
|
|
4412
|
+
case "team_only":
|
|
4413
|
+
return teamOnlyReason(policy.teamPrincipalTelegramUserIds);
|
|
4414
|
+
case "team_agents_only":
|
|
4415
|
+
return "mode_team_agents_only";
|
|
4416
|
+
case "agents_only":
|
|
4417
|
+
return "mode_agents_only";
|
|
4418
|
+
case "all":
|
|
4419
|
+
throw new Error("classifyTelegramPolicyBlock called with mode 'all', which never blocks. The caller must have a forward:false verdict from decideSenderPolicyForwardTelegram before classifying.");
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4405
4422
|
function politeDeclineCopy(reason) {
|
|
4406
4423
|
switch (reason) {
|
|
4407
4424
|
case "internal_only":
|
|
@@ -15347,6 +15364,7 @@ export {
|
|
|
15347
15364
|
SlackApiError,
|
|
15348
15365
|
createSlackApp,
|
|
15349
15366
|
classifySlackPolicyBlock,
|
|
15367
|
+
classifyTelegramPolicyBlock,
|
|
15350
15368
|
decideInboundAccess,
|
|
15351
15369
|
extractFrontmatter,
|
|
15352
15370
|
generateCharterMd,
|
|
@@ -15461,4 +15479,4 @@ export {
|
|
|
15461
15479
|
peekCurrentSession,
|
|
15462
15480
|
readDailySessionPin
|
|
15463
15481
|
};
|
|
15464
|
-
//# sourceMappingURL=chunk-
|
|
15482
|
+
//# sourceMappingURL=chunk-X7SX25N6.js.map
|