@integrity-labs/agt-cli 0.27.7-test.6 → 0.27.9
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 +103 -28
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-AACMX6LE.js → chunk-AQVJKJBD.js} +23 -2
- package/dist/chunk-AQVJKJBD.js.map +1 -0
- package/dist/lib/manager-worker.js +9 -9
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/telegram-channel.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AACMX6LE.js.map +0 -1
|
@@ -2900,6 +2900,27 @@ function formatConfigLines(config) {
|
|
|
2900
2900
|
return ` - ${k}: ${rendered}`;
|
|
2901
2901
|
});
|
|
2902
2902
|
}
|
|
2903
|
+
var EMAIL_DOMAIN_RESTRICT_DEF = "email.domain_restrict";
|
|
2904
|
+
function stringList(value) {
|
|
2905
|
+
return Array.isArray(value) ? value.filter((d) => typeof d === "string") : [];
|
|
2906
|
+
}
|
|
2907
|
+
function formatEmailDomainConfigLines(config) {
|
|
2908
|
+
const mode = typeof config.mode === "string" ? config.mode : void 0;
|
|
2909
|
+
const lines = [];
|
|
2910
|
+
if (mode)
|
|
2911
|
+
lines.push(` - mode: ${mode}`);
|
|
2912
|
+
if (mode === "allowlist") {
|
|
2913
|
+
const allowed = stringList(config.allowed_domains);
|
|
2914
|
+
lines.push(` - allowed_domains: ${allowed.length ? allowed.join(", ") : "(none \u2014 no external email permitted)"}`);
|
|
2915
|
+
} else if (mode === "blocklist") {
|
|
2916
|
+
const blocked = stringList(config.blocked_domains);
|
|
2917
|
+
lines.push(` - blocked_domains: ${blocked.length ? blocked.join(", ") : "(none)"}`);
|
|
2918
|
+
} else if (mode === "internal_only") {
|
|
2919
|
+
lines.push(` - only your organization's own email domain is permitted`);
|
|
2920
|
+
}
|
|
2921
|
+
lines.push(` *Advisory: honor this restriction \u2014 it is guidance in your instructions, not a hard block at send time.*`);
|
|
2922
|
+
return lines;
|
|
2923
|
+
}
|
|
2903
2924
|
function renderGuardrailBullet(g) {
|
|
2904
2925
|
const lines = [];
|
|
2905
2926
|
const header = `- **${g.displayName}** (${g.category}, from ${g.source})`;
|
|
@@ -2907,7 +2928,7 @@ function renderGuardrailBullet(g) {
|
|
|
2907
2928
|
if (g.description?.trim()) {
|
|
2908
2929
|
lines.push(` ${g.description.trim()}`);
|
|
2909
2930
|
}
|
|
2910
|
-
lines.push(...formatConfigLines(g.config));
|
|
2931
|
+
lines.push(...g.definitionId === EMAIL_DOMAIN_RESTRICT_DEF ? formatEmailDomainConfigLines(g.config) : formatConfigLines(g.config));
|
|
2911
2932
|
if (g.overrideApplied && g.overrideReason?.trim()) {
|
|
2912
2933
|
lines.push(` *Override applied: ${g.overrideReason.trim()}*`);
|
|
2913
2934
|
}
|
|
@@ -6785,4 +6806,4 @@ export {
|
|
|
6785
6806
|
managerInstallSystemUnitCommand,
|
|
6786
6807
|
managerUninstallSystemUnitCommand
|
|
6787
6808
|
};
|
|
6788
|
-
//# sourceMappingURL=chunk-
|
|
6809
|
+
//# sourceMappingURL=chunk-AQVJKJBD.js.map
|